Fix BS_OP_ROLLBACK removing an incorrect version

Instead of only removing versions with oid == X and version > Y it was
also removing the previous version in list (with the previous oid or
with version == Y)
This commit is contained in:
Vitaliy Filippov
2020-05-24 01:51:28 +03:00
parent 7df384031a
commit d1602b50b3
2 changed files with 5 additions and 6 deletions
-1
View File
@@ -247,7 +247,6 @@ void osd_t::handle_primary_subop(uint64_t opcode, osd_op_t *cur_op, int retval,
{
if (op_data->fact_ver != 0 && op_data->fact_ver != version)
{
// FIXME There is still a bug that leads to this exception sometimes :-((
throw std::runtime_error(
"different fact_versions returned from "+std::string(osd_op_names[opcode])+
" subops: "+std::to_string(version)+" vs "+std::to_string(op_data->fact_ver)