Merge pull request #2465 from taosdata/feature/2.0tsdb
fix kv store init coredump
This commit is contained in:
commit
7747cd8217
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue