Merge pull request #29498 from taosdata/opt/changeHashParam

[sync] change hash table func
This commit is contained in:
Hongze Cheng 2025-01-07 15:20:17 +08:00 committed by GitHub
commit b7de05209f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ int32_t syncRespMgrCreate(void *data, int64_t ttl, SSyncRespMgr **ppObj) {
TAOS_RETURN(terrno); TAOS_RETURN(terrno);
} }
pObj->pRespHash = pObj->pRespHash = taosHashInit(8192, taosGetDefaultHashFunction(TSDB_DATA_TYPE_UBIGINT), true, HASH_NO_LOCK);
taosHashInit(sizeof(uint64_t), taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), true, HASH_NO_LOCK);
if (pObj->pRespHash == NULL) { if (pObj->pRespHash == NULL) {
taosMemoryFree(pObj); taosMemoryFree(pObj);
TAOS_RETURN(terrno); TAOS_RETURN(terrno);