]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: flush the mdlog before waiting for unsafe requests
authorXiubo Li <xiubli@redhat.com>
Thu, 4 May 2023 05:57:11 +0000 (13:57 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 4 Jul 2023 01:38:11 +0000 (09:38 +0800)
commit6779acfe6a06e8a10cb3df1bc014d65d0d24d863
tree864f0c7a5015157e8414c912cbbf61c1faf60bf9
parentb4c1a65ef642b9e70dd40768e3258488a91779d4
client: flush the mdlog before waiting for unsafe requests

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)
src/client/Client.cc