add compile opt on windows

This commit is contained in:
yihaoDeng 2023-05-04 10:22:13 +00:00
parent 8b48396560
commit f9c49f4938
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ int defaultKeyComp(void* state, const char* aBuf, size_t aLen, const char* bBuf,
int streamStateValueIsStale(char* vv) { int streamStateValueIsStale(char* vv) {
int64_t ts = 0; int64_t ts = 0;
taosDecodeFixedI64(vv, &ts); taosDecodeFixedI64(vv, &ts);
return ts < taosGetTimestampSec() ? 1 : 0; return (ts != 0 && ts < taosGetTimestampSec()) ? 1 : 0;
} }
int iterValueIsStale(rocksdb_iterator_t* iter) { int iterValueIsStale(rocksdb_iterator_t* iter) {
size_t len; size_t len;