enh: remove obsolete code
This commit is contained in:
parent
eb6b6ec882
commit
b0d1f651ab
|
@ -577,10 +577,6 @@ static int32_t hbGetUserAuthInfo(SClientHbKey *connKey, SHbParam *param, SClient
|
|||
return TSDB_CODE_APP_ERROR;
|
||||
}
|
||||
|
||||
// if(pTscObj->dropped == 1) {
|
||||
// releaseTscObj(connKey->tscRid);
|
||||
// }
|
||||
|
||||
int32_t code = 0;
|
||||
|
||||
SKv kv = {.key = HEARTBEAT_KEY_USER_AUTHINFO};
|
||||
|
|
|
@ -2251,7 +2251,6 @@ int32_t ctgOpUpdateUser(SCtgCacheOperation *operation) {
|
|||
|
||||
memcpy(&userAuth.userAuth, &msg->userAuth, sizeof(msg->userAuth));
|
||||
userAuth.userCacheSize = ctgGetUserCacheSize(&userAuth.userAuth);
|
||||
|
||||
if (taosHashPut(pCtg->userCache, msg->userAuth.user, strlen(msg->userAuth.user), &userAuth, sizeof(userAuth))) {
|
||||
ctgError("taosHashPut user %s to cache failed", msg->userAuth.user);
|
||||
CTG_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
|
||||
|
|
Loading…
Reference in New Issue