fix:sdb maxId should use int64* instead of int32*
This commit is contained in:
parent
84d18005f2
commit
1f70f51ac8
|
@ -184,7 +184,7 @@ static int32_t sdbInsertRow(SSdb *pSdb, SHashObj *hash, SSdbRaw *pRaw, SSdbRow *
|
||||||
pSdb->maxId[pRow->type] = TMAX(pSdb->maxId[pRow->type], *((int32_t *)pRow->pObj));
|
pSdb->maxId[pRow->type] = TMAX(pSdb->maxId[pRow->type], *((int32_t *)pRow->pObj));
|
||||||
}
|
}
|
||||||
if (pSdb->keyTypes[pRow->type] == SDB_KEY_INT64) {
|
if (pSdb->keyTypes[pRow->type] == SDB_KEY_INT64) {
|
||||||
pSdb->maxId[pRow->type] = TMAX(pSdb->maxId[pRow->type], *((int32_t *)pRow->pObj));
|
pSdb->maxId[pRow->type] = TMAX(pSdb->maxId[pRow->type], *((int64_t *)pRow->pObj));
|
||||||
}
|
}
|
||||||
pSdb->tableVer[pRow->type]++;
|
pSdb->tableVer[pRow->type]++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue