diff --git a/src/util/src/tkvstore.c b/src/util/src/tkvstore.c index 80f8bdbcee4c13e838cc8ff35f0c10b039d96efd..54167b15d68d06e510cde816bdfc124138844ced 100644 --- a/src/util/src/tkvstore.c +++ b/src/util/src/tkvstore.c @@ -500,7 +500,7 @@ static int tdRestoreKVStore(SKVStore *pStore) { char *pBuf = tdDecodeKVRecord(tbuf, &rInfo); ASSERT(POINTER_DISTANCE(pBuf, tbuf) == sizeof(SKVRecord)); - ASSERT(pStore->info.size == rInfo.offset); + ASSERT((rInfo.offset > 0) ? (pStore->info.size == rInfo.offset) : true); if (rInfo.offset < 0) { taosHashRemove(pStore->map, (void *)(&rInfo.uid), sizeof(rInfo.uid));