]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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:49:37 +0000 (09:49 +0800)
commit32b7d2794cceea1e628dcadd627d25072f59a26a
treedc69c85cab2507ffb15c617b1b3e2801051d4af6
parent8934282de75bfae9ed7c114e0bb6e46fc588d851
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