]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: drop useless ver arg to _notify_ack
authorSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 20:38:17 +0000 (13:38 -0700)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:31:46 +0000 (10:31 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/RadosClient.cc

index f5a8a5badce23b28720382acbd6215e8d6bbb928..dcbe032863bc04d5a4e01a05eb59146dc9b94d03 100644 (file)
@@ -1077,12 +1077,12 @@ int librados::IoCtxImpl::watch(const object_t& oid, uint64_t ver,
 /* this is called with IoCtxImpl::lock held */
 int librados::IoCtxImpl::_notify_ack(
   const object_t& oid,
-  uint64_t notify_id, uint64_t ver,
+  uint64_t notify_id,
   uint64_t cookie)
 {
   ::ObjectOperation rd;
   prepare_assert_ops(&rd);
-  rd.notify_ack(notify_id, ver, cookie);
+  rd.notify_ack(notify_id, 0, cookie);
   objecter->read(oid, oloc, rd, snap_seq, (bufferlist*)NULL, 0, 0, 0);
   return 0;
 }
index 76cebf67e3b8e131758a8502b90fdc594a856570..0e4a1f044a99d347cfcc4548855cf213abe6ab2f 100644 (file)
@@ -200,9 +200,7 @@ struct librados::IoCtxImpl {
   int watch(const object_t& oid, uint64_t ver, uint64_t *cookie, librados::WatchCtx *ctx);
   int unwatch(const object_t& oid, uint64_t cookie);
   int notify(const object_t& oid, uint64_t ver, bufferlist& bl);
-  int _notify_ack(
-    const object_t& oid, uint64_t notify_id, uint64_t ver,
-    uint64_t cookie);
+  int _notify_ack(const object_t& oid, uint64_t notify_id, uint64_t cookie);
 
   int set_alloc_hint(const object_t& oid,
                      uint64_t expected_object_size,
index 56f52bb4314081e2ebbde81e5ee255e57c090aa7..85a93466e4ec40795543852489e7ebf36f682e13 100644 (file)
@@ -725,7 +725,7 @@ void librados::RadosClient::do_watch_notify(MWatchNotify *m)
       lock.Lock();
 
       // send ACK back to the OSD
-      wc->io_ctx_impl->_notify_ack(wc->oid, m->notify_id, m->ver, m->cookie);
+      wc->io_ctx_impl->_notify_ack(wc->oid, m->notify_id, m->cookie);
 
       ldout(cct,10) << __func__ << " notify done" << dendl;
       wc->put();