when do ceph-osd mkfs, when ceph-osd process exit, sometimes
the block data could be written incompletely. we need add
wait for it complete.
Signed-off-by: Chen Fan <fan.chen@easystack.cn>
(cherry picked from commit
0ffadad3a83b3ca634d7d58a80c84d1d8761e2ea)
<< "queue_transaction returned " << cpp_strerror(ret) << dendl;
goto umount_store;
}
+ ch->flush();
}
ret = write_meta(cct, store, sb.cluster_fsid, sb.osd_fsid, whoami, osdspec_affinity);