]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: sending EVENT_DISCONNECT becomes implementation detail of Watch.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 7 Apr 2021 11:41:39 +0000 (11:41 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 12 May 2021 13:29:28 +0000 (13:29 +0000)
commitbf6404e2b116d16b9d04f881b86948cdc523c59c
tree52f6ddfec98d1097ed62367d54cf961258535803
parent4070a7d5577395f796289afcb466159e5931fcc8
crimson/osd: sending EVENT_DISCONNECT becomes implementation detail of Watch.

In contrast to ceph-osd crimson sends CEPH_WATCH_EVENT_DISCONNECT directly
from the timeout handler and after CEPH_WATCH_EVENT_NOTIFY_COMPLETE.
This simplifies the Watch::remove() interface as callers aren't obliged
anymore to decide whether EVENT_DISCONNECT needs to be send or not -- it
becomes an implementation detail of Watch.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/ops_executer.cc
src/crimson/osd/watch.cc
src/crimson/osd/watch.h