]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: fix error log 8430/head
authorWei Jin <wjin.cn@gmail.com>
Mon, 4 Apr 2016 15:52:04 +0000 (23:52 +0800)
committerWei Jin <wjin.cn@gmail.com>
Mon, 4 Apr 2016 15:52:04 +0000 (23:52 +0800)
Signed-off-by: Wei Jin <wjin.cn@gmail.com>
src/crush/CrushWrapper.cc

index 9fb420281708882a05acfa1db5f4442286a49176..5748078d969b61f0d3b712099f0ed8c1ed9999b1 100644 (file)
@@ -116,7 +116,7 @@ int CrushWrapper::can_rename_item(const string& srcname,
     if (is_valid_crush_name(dstname)) {
       return 0;
     } else {
-      *ss << "srcname = '" << srcname << "' does not match [-_.0-9a-zA-Z]+";
+      *ss << "dstname = '" << dstname << "' does not match [-_.0-9a-zA-Z]+";
       return -EINVAL;
     }
   } else {