]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: separate WATCH from RECONNECT
authorSage Weil <sage@redhat.com>
Fri, 17 Oct 2014 03:16:07 +0000 (20:16 -0700)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:38 +0000 (10:32 -0800)
commite424103301904dc0d97de92438554a7ae7b755b3
treed46d37a6c2d7c324907e38d67683d12bc49ef122
parent5e113ce2ea36173d1a853caae5d1f4afc4e6523b
osdc/Objecter: separate WATCH from RECONNECT

Use WATCH op for the initial registration.  This is idempotent in that
it will succeed whether the watch information has been persisted or not.
It is used by the client if it does not know that it is registered.

The RECONNECT op is used for any subsequent session reconnect.  It will
fail if the watch state isn't already persisted on the OSD.

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