]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: define updated watch/notify interface
authorSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 21:32:48 +0000 (14:32 -0700)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:37 +0000 (10:32 -0800)
commit7e0c4efcd494224baf1e2f50aec020c46415bd9b
treef7a3def1c17a0b31f5f170bdd1d082cbb9c76dc9
parent12940c9f86aa57a5a7561705a5178e797a3115b9
librados: define updated watch/notify interface

- new notify callback with the correct values:
  - notify_id
  - watch handle
  - payload
- new notify_ack call
  - not implicit when the callback returns (for new api only)
  - optional payload
- new watch2 call
  - that provides the new callback
- new notify2 call
  - with the right arguments, and optional timeout

A couple refactors in here:
- IoCtx notify_ack is now called unlocked (Note: this will soon change
  with pending Objecter locking changes)
- Objecter notify_ack takes a buffer

TODO:
- no timeout on the individual watch, yet...

Signed-off-by: Sage Weil <sage@redhat.com>
src/include/rados/librados.h
src/include/rados/librados.hpp
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/RadosClient.cc
src/librados/librados.cc
src/osdc/Objecter.h
src/tracing/librados.tp