[TD-4034]when config changed,apply a commit msg then config will be applied

This commit is contained in:
lichuang 2021-05-26 18:27:22 +08:00
parent da4b78f1ba
commit 6213438f2e
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ int32_t tsdbConfigRepo(STsdbRepo *repo, STsdbCfg *pCfg) {
pthread_mutex_unlock(&repo->save_mutex);
// schedule a commit msg then the new config will be applyed immediatly
// schedule a commit msg then the new config will be applied immediatly
if (tsdbLockRepo(repo) < 0) return -1;
tsdbScheduleCommit(repo);
if (tsdbUnlockRepo(repo) < 0) return -1;