]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados, librbd: use separate IoCtxs for data and metadata
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 3 Mar 2011 16:44:27 +0000 (08:44 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 4 Mar 2011 00:10:39 +0000 (16:10 -0800)
commite779a3c03c64534f144b3322843bdafb9f3f5ebf
treee4f5dc8232f23badbcfca9a2912f09c6d5253e05
parent37edd473c8d8fcb3cf3f71134dc46f00d301e38c
librados, librbd: use separate IoCtxs for data and metadata

Adds deep copy method IoCtx::dup, so that the data and metadata
contexts can have different snap_seqs and snap contexts.

Also avoid calling Rados::shutdown explicitly, since the destructor
will do this, and it must run after the Image destructor.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/include/rados/librados.hpp
src/librados.cc
src/librbd.cc
src/testlibrbdpp.cc