Skip to content

Commit

Permalink
Don't warn when the reserved's size bigger than the pool's size in ac…
Browse files Browse the repository at this point in the history
…l_dbuf_pool_reset().
  • Loading branch information
zhengshuxin committed Apr 10, 2024
1 parent b0646b7 commit 434760a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib_acl/src/stdlib/memory/acl_dbuf_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ int acl_dbuf_pool_reset(ACL_DBUF_POOL *pool, size_t off)
ACL_DBUF *iter = pool->head, *tmp;

if (off > pool->off) {
acl_msg_warn("warning: %s(%d) off(%ld) > pool->off(%ld)",
__FUNCTION__, __LINE__, (long) off, (long) pool->off);
//acl_msg_warn("warning: %s(%d) off(%ld) > pool->off(%ld)",
// __FUNCTION__, __LINE__, (long) off, (long) pool->off);
return -1;
} else if (off == pool->off) {
return 0;
Expand Down

0 comments on commit 434760a

Please sign in to comment.