TD-2072
This commit is contained in:
parent
a31a6ed9a5
commit
9d8beb6598
|
@ -324,7 +324,7 @@ void tsdbReportStat(void *repo, int64_t *totalPoints, int64_t *totalStorage, int
|
|||
int tsdbInitCommitQueue(int nthreads);
|
||||
void tsdbDestroyCommitQueue();
|
||||
int tsdbSyncCommit(TSDB_REPO_T *repo);
|
||||
int tsdbIncCommitRef(int vgId);
|
||||
void tsdbIncCommitRef(int vgId);
|
||||
void tsdbDecCommitRef(int vgId);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -148,12 +148,12 @@ _exit:
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int tsdbIncCommitRef(int vgId) {
|
||||
void tsdbIncCommitRef(int vgId) {
|
||||
int refCount = atomic_add_fetch_32(&tsCommitQueue.refCount, 1);
|
||||
tsdbDebug("vgId:%d, inc commit queue ref to %d", refCount);
|
||||
tsdbDebug("vgId:%d, inc commit queue ref to %d", vgId, refCount);
|
||||
}
|
||||
|
||||
void tsdbDecCommitRef(int vgId) {
|
||||
int refCount = atomic_sub_fetch_32(&tsCommitQueue.refCount, 1);
|
||||
tsdbDebug("vgId:%d, dec commit queue ref to %d", refCount);
|
||||
tsdbDebug("vgId:%d, dec commit queue ref to %d", vgId, refCount);
|
||||
}
|
Loading…
Reference in New Issue