]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: make watch_check time reflect async delivery
authorSage Weil <sage@redhat.com>
Mon, 17 Nov 2014 19:28:21 +0000 (11:28 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:34:05 +0000 (10:34 -0800)
commit5c0a8c411f3b5ac0ec37c2859a0a11a697f9e2a3
tree6cfb63c6f5333041b995b29620f55517b51528fe
parent955a2f0ee95f30ae09f4d937c889423ecdba17e2
osdc/Objecter: make watch_check time reflect async delivery

When a librados user calls watch_check(), the age they get back should
establish a timestamp for which:

 1) we know that the watch was registered at least through this time,
 2) we have received and processed notifies sent as of this time,
 3) we have processed any async error events as of this time.

We already accomplish 1 by updating watch_valid_thru based on the time
the ping is sent (not received).

This patch gets us 2 and 3 by using the MIN of watch_valid_thru and the
oldest queued async event for the watch_check result.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h