For safe replies the clients need to wait the MDS daemons to flush
the journal logs to Rados first. The worst case it will take 5 seconds.
Just trigger to flush the journal logs before waiting.
Fixes: https://tracker.ceph.com/issues/59705
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
2b715b858e36a82b42b12129fcfcc13090f30a93)
flush_caps_sync();
ceph_tid_t flush_tid = last_flush_tid;
+ // flush the mdlog before waiting for unsafe requests.
+ flush_mdlog_sync();
+
// wait for unsafe mds requests
wait_unsafe_requests();