]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: cleanup comment
authorDavid Zafman <dzafman@redhat.com>
Mon, 3 Apr 2017 18:28:42 +0000 (11:28 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 17 Apr 2017 14:58:30 +0000 (07:58 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 6b173f204d02a224efd80037a5c31bc69a3f393f..f9bf85a5d63a848ff0f517efddb0ab0aefb8f0e8 100644 (file)
@@ -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";