Fix OSD assertion failed: n_subops != sent when all object copies are corrupted
This commit is contained in:
@@ -130,7 +130,7 @@ void osd_t::submit_primary_subops(int submit_type, uint64_t op_version, const ui
|
|||||||
if (osd_set[role] != 0 && (wr || !rep && stripes[role].read_end != 0))
|
if (osd_set[role] != 0 && (wr || !rep && stripes[role].read_end != 0))
|
||||||
n_subops++;
|
n_subops++;
|
||||||
}
|
}
|
||||||
if (!n_subops && (submit_type == SUBMIT_RMW_READ || rep))
|
if (zero_read >= 0 && !n_subops && (submit_type == SUBMIT_RMW_READ || rep))
|
||||||
n_subops = 1;
|
n_subops = 1;
|
||||||
else
|
else
|
||||||
zero_read = -1;
|
zero_read = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user