]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: split nfsns bucket and object create blocks
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 6 Jan 2016 15:24:23 +0000 (10:24 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:29 +0000 (12:07 -0500)
Helps to see the respective timings.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/test/librgw_file_nfsns.cc

index 24b9582d78627b913ab2f40b7111c6ab9a5acaee..7d6dbb3b7054ab24e377a83a354ab9c877fd404f 100644 (file)
@@ -205,7 +205,7 @@ TEST(LibRGW, ENUMERATE1) {
   }
 }
 
-TEST(LibRGW, MARKER1_SETUP)
+TEST(LibRGW, MARKER1_SETUP_BUCKET)
 {
   /* "large" directory enumeration test.  this one deals only with
    * file objects */
@@ -220,6 +220,17 @@ TEST(LibRGW, MARKER1_SETUP)
 
     ret = rgw_mkdir(fs, bucket_fh, marker_dir.c_str(), 755, &st, &marker_fh);
     ASSERT_EQ(ret, 0);
+  }
+}
+
+TEST(LibRGW, MARKER1_SETUP_OBJECTS)
+{
+  /* "large" directory enumeration test.  this one deals only with
+   * file objects */
+
+  if (do_marker1) {
+    struct stat st;
+    int ret;
 
     for (int ix = 0; ix < marker_nobjs; ++ix) {
       std::string object_name("f_");