Merge pull request #27866 from taosdata/postfix/3.0/TD-31994

postfix conn/app cache check time
This commit is contained in:
Pan Wei 2024-09-14 09:18:37 +08:00 committed by GitHub
commit 1b0d3b5a46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ int32_t mndInitProfile(SMnode *pMnode) {
SProfileMgmt *pMgmt = &pMnode->profileMgmt;
// in ms
int32_t checkTime = tsShellActivityTimer * 2 * 1000;
int32_t checkTime = CACHE_OBJ_KEEP_TIME * 1000;
pMgmt->connCache = taosCacheInit(TSDB_DATA_TYPE_UINT, checkTime, false, (__cache_free_fn_t)mndFreeConn, "conn");
if (pMgmt->connCache == NULL) {
code = TSDB_CODE_OUT_OF_MEMORY;