]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: cleanup set-quota error msg 7371/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 27 Jan 2016 09:26:15 +0000 (10:26 +0100)
committerAbhishek L <abhishekl@linux-stsn.suse>
Fri, 19 Feb 2016 08:29:04 +0000 (09:29 +0100)
When we send in an unrecognized field for set-quota, specify that the
options should be `max_bytes` or `max_objects`. This doesn't affect the
ceph-cli as the choices are caught at an earlier stage, however the
error message is seen while reaching the cluster via rados api for eg.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/mon/OSDMonitor.cc

index 77e26de70a9f1b26e6c20e7cfee0a439e2b3b60e..644bb968fdd17e9f2d22fdce7c2e27b98af6b2b5 100644 (file)
@@ -7354,7 +7354,7 @@ done:
     string field;
     cmd_getval(g_ceph_context, cmdmap, "field", field);
     if (field != "max_objects" && field != "max_bytes") {
-      ss << "unrecognized field '" << field << "'; max_bytes of max_objects";
+      ss << "unrecognized field '" << field << "'; should be 'max_bytes' or 'max_objects'";
       err = -EINVAL;
       goto reply;
     }