#endif
#define LIBRADOS_VER_MAJOR 0
-#define LIBRADOS_VER_MINOR 27
+#define LIBRADOS_VER_MINOR 30
#define LIBRADOS_VER_EXTRA 0
#define LIBRADOS_VERSION(maj, min, extra) ((maj << 16) + (min << 8) + extra)
int rados_ioctx_pool_set_auid(rados_ioctx_t io, uint64_t auid);
void rados_ioctx_locator_set_key(rados_ioctx_t io, const char *key);
+int rados_ioctx_get_id(rados_ioctx_t io);
/* objects */
int rados_objects_list_open(rados_ioctx_t io, rados_list_ctx_t *ctx);
const std::string& get_pool_name() const;
void locator_set_key(const std::string& key);
+
+ int get_id();
private:
/* You can only get IoCtx instances from Rados */
IoCtx(IoCtxImpl *io_ctx_impl_);
void queue_aio_write(struct AioCompletionImpl *c);
void complete_aio_write(struct AioCompletionImpl *c);
void flush_aio_writes();
+
+ int get_id() {
+ return poolid;
+ }
};
io_ctx_impl->oloc.key = key;
}
+int librados::IoCtx::
+get_id()
+{
+ return io_ctx_impl->get_id();
+}
+
librados::IoCtx::
IoCtx(IoCtxImpl *io_ctx_impl_)
: io_ctx_impl(io_ctx_impl_)
else
ctx->oloc.key = "";
}
+
+extern "C" int rados_ioctx_get_id(rados_ioctx_t io)
+{
+ librados::IoCtxImpl *ctx = (librados::IoCtxImpl *)io;
+ return ctx->get_id();
+}
// snaps
extern "C" int rados_ioctx_snap_create(rados_ioctx_t io, const char *snapname)