Fix has_flushes setting

rdma-zerocopy
Vitaliy Filippov 2021-04-28 00:55:27 +03:00
parent 5d8d486f7c
commit 9703773a63
1 changed files with 2 additions and 2 deletions

View File

@ -155,14 +155,14 @@ restart:
has_writes = has_writes || !rm;
if (is_flush)
{
has_flushes = has_writes || !rm;
has_flushes = has_flushes || !rm;
}
}
else if (opcode == OSD_OP_SYNC)
{
// Postpone writes until previous SYNC completes
// ...so dirty_writes can't contain anything newer than SYNC
has_flushes = has_writes || !rm;
has_flushes = has_flushes || !rm;
}
if (rm)
{