Fix segfault with concurrent OP_SYNCs

This commit is contained in:
Vitaliy Filippov
2020-03-10 17:00:23 +03:00
parent 31f9445030
commit 3dd1b22d55
2 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -175,7 +175,7 @@ int blockstore_impl_t::continue_sync(blockstore_op_t *op)
}
if (PRIV(op)->op_state == SYNC_DONE)
{
ack_sync(op);
return ack_sync(op);
}
return 1;
}
@@ -237,7 +237,7 @@ int blockstore_impl_t::ack_sync(blockstore_op_t *op)
ack_one_sync(next_sync);
}
}
return 1;
return 2;
}
return 0;
}