Fix safe stop procedure

This commit is contained in:
Vitaliy Filippov
2019-11-28 02:27:17 +03:00
parent d56cb290ee
commit e1ac4dba23
5 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ bool blockstore::is_safe_to_stop()
blockstore_operation *op = new blockstore_operation;
op->flags = OP_SYNC;
op->buf = NULL;
op->callback = [&](blockstore_operation *op)
op->callback = [](blockstore_operation *op)
{
delete op;
};