提交 83487bc3 编写于 作者: H Hongze Cheng

tdb Debug

上级 f3fa9e4d
......@@ -223,7 +223,7 @@ static void tdbPCachePinPage(SPCache *pCache, SPage *pPage) {
pCache->nRecyclable--;
tdbDebug("pin page %d", pPage->id);
tdbTrace("pin page %d", pPage->id);
}
}
......@@ -243,7 +243,7 @@ static void tdbPCacheUnpinPage(SPCache *pCache, SPage *pPage) {
pCache->nRecyclable++;
tdbDebug("unpin page %d", pPage->id);
tdbTrace("unpin page %d", pPage->id);
}
static void tdbPCacheRemovePageFromHash(SPCache *pCache, SPage *pPage) {
......@@ -258,7 +258,7 @@ static void tdbPCacheRemovePageFromHash(SPCache *pCache, SPage *pPage) {
pCache->nPage--;
tdbDebug("remove page %d to hash", pPage->id);
tdbTrace("remove page %d to hash", pPage->id);
}
static void tdbPCacheAddPageToHash(SPCache *pCache, SPage *pPage) {
......@@ -271,7 +271,7 @@ static void tdbPCacheAddPageToHash(SPCache *pCache, SPage *pPage) {
pCache->nPage++;
tdbDebug("add page %d to hash", pPage->id);
tdbTrace("add page %d to hash", pPage->id);
}
static int tdbPCacheOpenImpl(SPCache *pCache) {
......
......@@ -257,13 +257,13 @@ struct SPage {
static inline i32 tdbRefPage(SPage *pPage) {
i32 nRef = atomic_add_fetch_32(&((pPage)->nRef), 1);
tdbInfo("ref page %d, nRef %d", pPage->id, nRef);
tdbTrace("ref page %d, nRef %d", pPage->id, nRef);
return nRef;
}
static inline i32 tdbUnrefPage(SPage *pPage) {
i32 nRef = atomic_sub_fetch_32(&((pPage)->nRef), 1);
tdbInfo("unref page %d, nRef %d", pPage->id, nRef);
tdbTrace("unref page %d, nRef %d", pPage->id, nRef);
return nRef;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册