]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: change destpool assumptions.
authorDan Mick <dan.mick@inktank.com>
Thu, 15 Nov 2012 23:55:10 +0000 (15:55 -0800)
committerDan Mick <dan.mick@inktank.com>
Tue, 27 Nov 2012 05:37:55 +0000 (21:37 -0800)
Don't default destpool to srcpool; it's surprising, and
not useful/helpful enough to violate the convention that
"default pool is rbd"

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc

index 57614a65dc88d47336b1c9d34c3e9a7c592b689c..9d02d994ba3d961e4b4dd4e0eaeec3b91cb2d54c 100644 (file)
@@ -1658,8 +1658,9 @@ if (!set_conf_param(v, p1, p2, p3)) { \
 
   if (!poolname)
     poolname = "rbd";
+
   if (!dest_poolname)
-    dest_poolname = poolname;
+    dest_poolname = "rbd";
 
   if (opt_cmd == OPT_EXPORT && !path)
     path = imgname;