From a944461d573de8dd7a34eefc6a33063da5eb77d7 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Sun, 29 Mar 2020 17:17:57 +0800 Subject: [PATCH] TD-34 --- src/vnode/tsdb/src/tsdbMain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vnode/tsdb/src/tsdbMain.c b/src/vnode/tsdb/src/tsdbMain.c index 6abee55582..c45a8407cc 100644 --- a/src/vnode/tsdb/src/tsdbMain.c +++ b/src/vnode/tsdb/src/tsdbMain.c @@ -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)); } /** -- GitLab