]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TestRados.cc: use !empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 19 Feb 2014 17:37:00 +0000 (18:37 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 19 Feb 2014 17:37:00 +0000 (18:37 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/osd/TestRados.cc

index 79c367c58e8a6b53e203215f5d45a4c0b38d7a6f..02e7735b998ff79d35e0e295f778b6b56f2492df 100644 (file)
@@ -281,7 +281,7 @@ int main(int argc, char **argv)
     else if (strcmp(argv[i], "--max-stride-size") == 0)
       max_stride_size = atoi(argv[++i]);
     else if (strcmp(argv[i], "--ec-pool") == 0) {
-      if (op_weights.size()) {
+      if (!op_weights.empty()) {
        cerr << "--ec-pool must be specified prior to any ops" << std::endl;
        exit(1);
       }