]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: mark deprecated watch/notify methods with deprecated attribute
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 22:09:20 +0000 (14:09 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:39 +0000 (10:32 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/include/rados/librados.hpp

index edb509a03ee1263461daf1184d10513419d33ef1..dfe5b9a4109fd214f16ec4aa6599b9333facc1ba 100644 (file)
@@ -938,11 +938,11 @@ namespace librados
 
     // watch/notify
     int watch(const std::string& o, uint64_t ver, uint64_t *handle,
-             librados::WatchCtx *ctx);
+             librados::WatchCtx *ctx) __attribute__ ((deprecated));
     int watch2(const std::string& o, uint64_t *handle,
               librados::WatchCtx2 *ctx);
     int unwatch(const std::string& o, uint64_t handle);
-    int notify(const std::string& o, uint64_t ver, bufferlist& bl);
+    int notify(const std::string& o, uint64_t ver, bufferlist& bl) __attribute__ ((deprecated));
     int notify2(const std::string& o,   ///< object
                bufferlist& bl,         ///< optional broadcast payload
                uint64_t timeout_ms,    ///< timeout (in ms)