summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Zafman <dzafman@redhat.com>2017-04-03 20:28:42 +0200
committerDavid Zafman <dzafman@redhat.com>2017-04-17 16:58:30 +0200
commit3a66f1fbf606157ea3f3ae96e2e9577a54a60886 (patch)
treefcaa8f1ac7cbcc46ece0882455340cea9182908a /src
parentosd: Fix log message (diff)
downloadceph-3a66f1fbf606157ea3f3ae96e2e9577a54a60886.tar.xz
ceph-3a66f1fbf606157ea3f3ae96e2e9577a54a60886.zip
ceph-objectstore-tool: cleanup comment
Signed-off-by: David Zafman <dzafman@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/tools/ceph_objectstore_tool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc
index 6b173f204d0..f9bf85a5d63 100644
--- a/src/tools/ceph_objectstore_tool.cc
+++ b/src/tools/ceph_objectstore_tool.cc
@@ -2906,7 +2906,7 @@ int main(int argc, char **argv)
throw std::runtime_error(ss.str());
}
vector<json_spirit::Value>::iterator i = array.begin();
- //if (i == array.end() || i->type() != json_spirit::str_type) {
+ assert(i != array.end());
if (i->type() != json_spirit::str_type) {
ss << "Object '" << object
<< "' must be a JSON array with the first element a string";