[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ceph-devel
Subject:    Re: ceph watch/notify
From:       Jason Dillaman <jdillama () redhat ! com>
Date:       2016-10-26 12:31:46
Message-ID: CA+aFP1C3kVu4Dy0n5A_RbuwkeV5+uXacmgVACxt8K_cFRSgwyQ () mail ! gmail ! com
[Download RAW message or body]

On Wed, Oct 26, 2016 at 6:34 AM, Jaze Lee <jazeltq@gmail.com> wrote:
> But here
> https://github.com/ceph/ceph/blob/master/src/librbd/ImageWatcher.cc#L819
> It is not estimate whether it is owner.  I do not why, can someone explain
> more about this? Thanks.

The "ExclusiveLock::accept_requests" method will return false with a
zeroed error code if it's not the exclusive lock owner, so it will
fall through the "if" and the "else if" statements and do nothing
accept acknowledge receipt of the notification.

-- 
Jason
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic