]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: don't early terminate readdirs (in progress)
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 6 Jan 2016 15:52:49 +0000 (10:52 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:31 +0000 (12:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index d631fa1ece88604a5d9f7bc9f80b82ed31301208..4a3b7edc14f2709e9ac0a926f0280d2c3d8302f1 100644 (file)
@@ -372,6 +372,7 @@ namespace rgw {
       directory* d = get<directory>(&variant_type);
       if (d) {
        unique_lock guard(mtx);
+       // XXXX check for failure (dup key)
        d->marker_cache.insert(
          marker_cache_t::value_type(off, marker.data()));
        /* 90% of directories hold <= 32 entries (Yifan Wang, CMU),
@@ -868,7 +869,7 @@ public:
     return 0;
   }
 
-  bool eof() { return ssize_t(ix) < RGWListBuckets::limit; }
+  bool eof() { return ix == 0; }
 
 }; /* RGWListBucketsRequest */
 
@@ -1017,7 +1018,7 @@ public:
     send_response();
   }
 
-  bool eof() { return ssize_t(ix) < RGWListBucket::max; }
+  bool eof() { return ix == 0; }
 
 }; /* RGWReaddirRequest */