This commit is contained in:
hzcheng 2020-03-29 17:17:57 +08:00
parent ab22c7f606
commit a944461d57
1 changed files with 2 additions and 2 deletions

View File

@ -345,12 +345,12 @@ int32_t tsdbTriggerCommit(tsdb_repo_t *repo) {
int32_t tsdbLockRepo(tsdb_repo_t *repo) {
STsdbRepo *pRepo = (STsdbRepo *)repo;
return pthread_mutex_lock(repo);
return pthread_mutex_lock(&(pRepo->mutex));
}
int32_t tsdbUnLockRepo(tsdb_repo_t *repo) {
STsdbRepo *pRepo = (STsdbRepo *)repo;
return pthread_mutex_unlock(repo);
return pthread_mutex_unlock(&(pRepo->mutex));
}
/**