Retry even fatal errors for OP_SYNC (no real-world issue, just in case)

This commit is contained in:
Vitaliy Filippov
2026-05-11 16:08:14 +03:00
parent fe8b1fe0cc
commit 14b22f2ba9
+1 -1
View File
@@ -1171,7 +1171,7 @@ resume_2:
erase_op(op);
return 1;
}
else if (op->retval != 0 && !(op->flags & OP_FLUSH_BUFFER) &&
else if (op->retval != 0 && op->opcode != OSD_OP_SYNC && !(op->flags & OP_FLUSH_BUFFER) &&
op->retval != -EPIPE && (op->retval != -EIO || !client_eio_retry_interval) && (op->retval != -ENOSPC || !client_retry_enospc))
{
// Fatal error (neither -EPIPE, -EIO nor -ENOSPC)