Skip to content

Commit

Permalink
Workaround: temporary disbale assert of dirty_buf_cnt.
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxi Chen <[email protected]>
  • Loading branch information
xiaoxichen committed Oct 1, 2024
1 parent d445658 commit 15741a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/common/resource_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ void ResourceMgr::dec_dirty_buf_size(const uint32_t size) {
HS_REL_ASSERT_GT(size, 0);
const int64_t dirty_buf_cnt = m_hs_dirty_buf_cnt.fetch_sub(size, std::memory_order_relaxed);
COUNTER_DECREMENT(m_metrics, dirty_buf_cnt, size);
HS_REL_ASSERT_GE(dirty_buf_cnt, size);
if (dirty_buf_cnt < size) {
LOGERROR("dirty_buf_cnt {} of now is less then size {}", dirty_buf_cnt, size);
}
//HS_REL_ASSERT_GE(dirty_buf_cnt, size);
}

void ResourceMgr::register_dirty_buf_exceed_cb(exceed_limit_cb_t cb) { m_dirty_buf_exceed_cb = std::move(cb); }
Expand Down

0 comments on commit 15741a8

Please sign in to comment.