summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-06-20 11:23:11 -0700
committerSage Weil <sage@inktank.com>2013-06-20 11:23:11 -0700
commit4977b88a7cf1eab3b96d96ad4f0257e7b41aaa5b (patch)
tree0536ce1636fdcb6f07496ece91dbc1b702674716
parent4a038d6df531ac2e9b4268d9b730dca1e38c32a9 (diff)
downloadceph-4977b88a7cf1eab3b96d96ad4f0257e7b41aaa5b.tar.gz
mds: make 'mds compat rm_*compat' idempotent
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/mon/MDSMonitor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc
index 0314f2b2e4d..5e35b2f9bb4 100644
--- a/src/mon/MDSMonitor.cc
+++ b/src/mon/MDSMonitor.cc
@@ -942,7 +942,7 @@ bool MDSMonitor::prepare_command(MMonCommand *m)
r = 0;
} else {
ss << "compat feature " << f << " not present in " << pending_mdsmap.compat;
- r = -ENOENT;
+ r = 0;
}
} else if (prefix == "mds compat rm_incompat") {
int64_t f;
@@ -953,7 +953,7 @@ bool MDSMonitor::prepare_command(MMonCommand *m)
r = 0;
} else {
ss << "incompat feature " << f << " not present in " << pending_mdsmap.compat;
- r = -ENOENT;
+ r = 0;
}
} else if (prefix == "mds add_data_pool") {