]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: Fix rados export to use io_ctx in the right way 5201/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 10 Jul 2015 21:40:34 +0000 (14:40 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 10 Jul 2015 21:59:45 +0000 (14:59 -0700)
Cause by: 868f6b7626db4a802b38d1d8ce5135108b322f74

Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/rados/PoolDump.cc

index fa230315e7ba6befe66dec9945e4b88e6374b12e..998bd54f4b2a8f7a4a3663fc198830efe591e5d2 100644 (file)
@@ -68,6 +68,7 @@ int PoolDump::dump(IoCtx *io_ctx)
     // ========================
     const uint32_t op_size = 4096 * 1024;
     uint64_t offset = 0;
+    io_ctx->set_namespace(i->get_nspace());
     while (true) {
       bufferlist outdata;
       r = io_ctx->read(oid, outdata, op_size, offset);