enh: remove obsolete code
This commit is contained in:
parent
b0d1f651ab
commit
677e938851
|
@ -2251,6 +2251,7 @@ int32_t ctgOpUpdateUser(SCtgCacheOperation *operation) {
|
||||||
|
|
||||||
memcpy(&userAuth.userAuth, &msg->userAuth, sizeof(msg->userAuth));
|
memcpy(&userAuth.userAuth, &msg->userAuth, sizeof(msg->userAuth));
|
||||||
userAuth.userCacheSize = ctgGetUserCacheSize(&userAuth.userAuth);
|
userAuth.userCacheSize = ctgGetUserCacheSize(&userAuth.userAuth);
|
||||||
|
|
||||||
if (taosHashPut(pCtg->userCache, msg->userAuth.user, strlen(msg->userAuth.user), &userAuth, sizeof(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);
|
ctgError("taosHashPut user %s to cache failed", msg->userAuth.user);
|
||||||
CTG_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
|
CTG_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
|
||||||
|
|
Loading…
Reference in New Issue