]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: when listing objects, set locator key only when needed
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 6 Jul 2011 20:32:31 +0000 (13:32 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 6 Jul 2011 20:34:13 +0000 (13:34 -0700)
src/rgw/rgw_rados.cc

index d97b1b05a0754c9944aafc755ca08c32f062d85f..a507e186d1c87ff6cacedd1963e9a3f1212df29b 100644 (file)
@@ -214,7 +214,8 @@ int RGWRados::list_objects(string& id, string& bucket, int max, string& prefix,
     }
 
     uint64_t s;
-    io_ctx.locator_set_key(key);
+    if (key.compare(name) != 0)
+      io_ctx.locator_set_key(key);
     if (io_ctx.stat(oid, &s, &obj.mtime) < 0)
       continue;
     obj.size = s;