diff options
author | Sage Weil <sage@newdream.net> | 2012-02-24 12:40:34 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-02-24 12:40:50 -0800 |
commit | d85ed91cc73ae50d1939b3b424efcc7aa456bb07 (patch) | |
tree | def7b28c5f8b1adb5bab583283767a99678611cf | |
parent | 722e9e59cbb3694be657966b8f7d97cb86382bb8 (diff) | |
download | ceph-d85ed91cc73ae50d1939b3b424efcc7aa456bb07.tar.gz |
osd: fix array index
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 8e6331e6d25..aa92df645f7 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -288,7 +288,7 @@ int ReplicatedPG::do_command(vector<string>& cmd, ostream& ss, ss << "too few arguments; must specify mode as 'revert' (mark and delete not yet implemented)"; return -EINVAL; } - if (cmd[2] != "revert") { + if (cmd[1] != "revert") { ss << "mode must be 'revert'; mark and delete not yet implemented"; return -EINVAL; } |