Remove separate close_sync in nbd_proxy, too

This commit is contained in:
Vitaliy Filippov
2025-09-24 02:11:32 +03:00
parent 2c6bddd831
commit 887f7c1530
-14
View File
@@ -697,20 +697,6 @@ help:
ringloop->loop();
ringloop->wait();
}
stop = false;
cluster_op_t *close_sync = new cluster_op_t;
close_sync->opcode = OSD_OP_SYNC;
close_sync->callback = [&stop](cluster_op_t *op)
{
stop = true;
delete op;
};
cli->execute(close_sync);
while (!stop)
{
ringloop->loop();
ringloop->wait();
}
cli->flush();
delete cli;
delete epmgr;