]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/kstore: fix collection_list end bound off-by-one 11771/head
authorSage Weil <sage@redhat.com>
Thu, 3 Nov 2016 18:14:33 +0000 (14:14 -0400)
committerSage Weil <sage@redhat.com>
Thu, 3 Nov 2016 18:14:33 +0000 (14:14 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/kstore/KStore.cc

index ed10be43fc16b80d1ed53d32515d68113860b5a8..443133043d206bd8fe038f0d8d23eb2579374f2d 100755 (executable)
@@ -1498,7 +1498,7 @@ int KStore::_collection_list(
   }
   dout(20) << __func__ << " pend " << pretty_binary_string(pend) << dendl;
   while (true) {
-    if (!it->valid() || it->key() > pend) {
+    if (!it->valid() || it->key() >= pend) {
       if (!it->valid())
        dout(20) << __func__ << " iterator not valid (end of db?)" << dendl;
       else