]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix the set loner log 43276/head
authorXiubo Li <xiubli@redhat.com>
Sat, 25 Sep 2021 08:56:39 +0000 (16:56 +0800)
committerXiubo Li <xiubli@redhat.com>
Sat, 25 Sep 2021 08:57:18 +0000 (16:57 +0800)
Once here the current loner has already been dropped if there has,
and the get_wanted_loner() is the new loner it trying to set to.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/Locker.cc

index 78895a40eff67caffd4f942bab480136cbd1b953..bacc79a10381d63bdfc29cb1c0a357a18e4b05a1 100644 (file)
@@ -1324,7 +1324,7 @@ bool Locker::eval(CInode *in, int mask, bool caps_imported)
     if (in->try_drop_loner()) {
       need_issue = true;
       if (in->get_wanted_loner() >= 0) {
-       dout(10) << "eval end set loner to client." << in->get_loner() << dendl;
+       dout(10) << "eval end set loner to client." << in->get_wanted_loner() << dendl;
        bool ok = in->try_set_loner();
        ceph_assert(ok);
        mask = -1;