diff options
author | Josh Durgin <josh.durgin@inktank.com> | 2012-09-18 09:37:44 -0700 |
---|---|---|
committer | Josh Durgin <josh.durgin@inktank.com> | 2012-09-18 10:11:35 -0700 |
commit | a179ccee8848fe9bc8d622cba13fab1a99f6eb63 (patch) | |
tree | fa58b9daa7b28eff6d05c1d8ed8a039bc11e67ef /src/rbd.cc | |
parent | 16aca749989b006f4d5d2190ed1e8480c1bf0282 (diff) | |
download | ceph-a179ccee8848fe9bc8d622cba13fab1a99f6eb63.tar.gz |
rbd: only open the destination pool for import
Otherwise importing into another pool when the default pool, rbd,
doesn't exist results in an error trying to open the rbd pool.
Reported-by: Sébastien Han <han.sebastien@gmail.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'src/rbd.cc')
-rw-r--r-- | src/rbd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rbd.cc b/src/rbd.cc index f95898fe79d..88e34079712 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -1139,7 +1139,7 @@ int main(int argc, const char **argv) } int r; - if (talk_to_cluster) { + if (talk_to_cluster && opt_cmd != OPT_IMPORT) { r = rados.ioctx_create(poolname, io_ctx); if (r < 0) { cerr << "error opening pool " << poolname << ": " << cpp_strerror(-r) << std::endl; |