enh: remove assert tpagebuff.c

This commit is contained in:
Alex Duan 2022-12-30 15:58:38 +08:00
parent 02dec5a10a
commit 56c14f79a7
1 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ void* getBufPage(SDiskbasedBuf* pBuf, int32_t id) {
}
void releaseBufPage(SDiskbasedBuf* pBuf, void* page) {
if (ASSERTS(pBuf == NULL || page == NULL, "pBuf or page is NULL")) {
if (ASSERTS(pBuf != NULL && page != NULL, "pBuf or page is NULL")) {
return;
}
SPageInfo* ppi = getPageInfoFromPayload(page);
@ -493,7 +493,7 @@ void releaseBufPageInfo(SDiskbasedBuf* pBuf, SPageInfo* pi) {
#ifdef BUF_PAGE_DEBUG
uDebug("page_releaseBufPageInfo pageId:%d, used:%d, offset:%" PRId64, pi->pageId, pi->used, pi->offset);
#endif
if (ASSERTS(pi->pData == NULL, "pi->pData is NULL")) {
if (ASSERTS(pi->pData != NULL, "pi->pData is NULL")) {
return;
}