From c5bccb1cca7916625d2340ff5c5fd291fa41b7e6 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Sun, 29 Nov 2020 01:40:53 +0000 Subject: [PATCH] mode debug info --- src/util/src/tref.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/util/src/tref.c b/src/util/src/tref.c index b5e0d3fcf8..dc9adb0858 100644 --- a/src/util/src/tref.c +++ b/src/util/src/tref.c @@ -436,10 +436,10 @@ static int taosDecRefCount(int rsetId, int64_t rid, int remove) { free(pNode); released = 1; } else { - uTrace("rsetId:%d p:%p rid:%" PRId64 "is released, hash:%d count:%d", rsetId, pNode->p, rid, hash, pNode->count); + uTrace("rsetId:%d p:%p rid:%" PRId64 "is released, hash:%d count:%d", rsetId, pNode->p, rid, hash, pSet->count); } } else { - uTrace("rsetId:%d rid:%" PRId64 " is not there, failed to release/remove, hash:%d", rsetId, rid, hash); + uTrace("rsetId:%d rid:%" PRId64 " is not there, failed to release/remove, hash:%d count:%d", rsetId, rid, hash, pSet->count); terrno = TSDB_CODE_REF_NOT_EXIST; code = -1; } @@ -459,6 +459,8 @@ static void taosLockList(int64_t *lockedBy) { sched_yield(); } } + + uTrace("rsetId: %p is locked", lockedBy); } static void taosUnlockList(int64_t *lockedBy) { @@ -466,6 +468,8 @@ static void taosUnlockList(int64_t *lockedBy) { if (atomic_val_compare_exchange_64(lockedBy, tid, 0) != tid) { assert(false); } + + uTrace("rsetId: %p is unlocked", lockedBy); } static void taosInitRefModule(void) { -- GitLab