]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: Added new API methods to create an ioctx by pool id
authorJason Dillaman <dillaman@redhat.com>
Fri, 12 Dec 2014 14:44:28 +0000 (09:44 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 13 Dec 2014 09:37:55 +0000 (04:37 -0500)
commitf79b7fe4513a386623b7f102daeeb5b1657ddbc6
treefe2f62c97938a1b10bcb6a7dedc19286cf5500a1
parentd818a24eb1df88e186729f0af327cb1e68b22244
librados: Added new API methods to create an ioctx by pool id

A new pool_list method includes the unique pool id for all pools.
This pool id can be used with the new rados_ioctx_create2 /
ioctx_create methods to create an ioctx by pool id instead of
by pool name.  Creating ioctx's by pool id helps avoid certain
race conditions when pools are renamed or deleted.

Signed-off-by: Jason Dillaman <dillaman@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/RadosClient.h
src/librados/librados.cc
src/tracing/librados.tp