【资源池化】【bugfix】删除错误校验,页面为脏时存在页面时无效的情况

This commit is contained in:
dongning12
2024-05-17 09:27:42 +08:00
committed by yaoxin
parent 959dfc3d9f
commit 1299da6f0e

View File

@ -91,9 +91,6 @@ inline bool SSBufferIsDirty(BufferDesc *buf_desc)
uint64 state = pg_atomic_read_u64(&buf_desc->state);
// no need to judge (BM_DIRTY | BM_JUST_DIRTIED), BM_DIRTY is enough
if (state & BM_DIRTY) {
#ifdef USE_ASSERT_CHECKING
Assert((state & BM_VALID) == BM_VALID);
#endif
return true;
}
if (ENABLE_DSS_AIO && buf_desc->extra->aio_in_progress) {