Mark in-memory data reads as SKIP_CSUM

This commit is contained in:
Vitaliy Filippov
2025-11-23 19:08:24 +03:00
parent b14fbbf5cc
commit 915be747d6
2 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -629,8 +629,8 @@ bool journal_flusher_co::read_buffered(int wait_base)
}
for (i = 0; i < read_vec.size(); i++)
{
if (read_vec[i].copy_flags == COPY_BUF_JOURNAL && !bs->dsk.inmemory_journal ||
(read_vec[i].copy_flags & COPY_BUF_DATA) && !(read_vec[i].copy_flags & COPY_BUF_COALESCED))
if (!(read_vec[i].copy_flags & COPY_BUF_COALESCED) &&
((read_vec[i].copy_flags & COPY_BUF_JOURNAL) && !bs->dsk.inmemory_journal || (read_vec[i].copy_flags & COPY_BUF_DATA)))
{
await_sqe(0);
auto & vec = read_vec[i];