RBD now uses this method, so it was added to the test stub.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
return impl->wait_for_latest_osdmap();
}
+int Rados::watch_flush() {
+ TestRadosClient *impl = reinterpret_cast<TestRadosClient*>(client);
+ return impl->watch_flush();
+}
+
WatchCtx::~WatchCtx() {
}
return -ENOENT;
}
+int TestMemRadosClient::watch_flush() {
+ return 0;
+}
+
} // namespace librados
virtual int64_t pool_lookup(const std::string &name);
virtual int pool_reverse_lookup(int64_t id, std::string *name);
+ virtual int watch_flush();
protected:
~TestMemRadosClient();
virtual int64_t pool_lookup(const std::string &name) = 0;
virtual int pool_reverse_lookup(int64_t id, std::string *name) = 0;
+ virtual int watch_flush() = 0;
+
TestWatchNotify &get_watch_notify() {
return m_watch_notify;
}