]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix list for more than 1024 format 2 images
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 24 Sep 2012 21:28:40 +0000 (14:28 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 25 Sep 2012 21:09:27 +0000 (14:09 -0700)
r was not being set in the loop.

CID 716936: Infinite loop (INFINITE_LOOP)
At (1): Top of the loop.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc

index 2e5fefac95a5071a0932de26ac4beb7d58be6a46..9d4a6fe15cd11199164c2ef93a8032bbe1b73c3c 100644 (file)
@@ -378,6 +378,7 @@ namespace librbd {
       if (images.size()) {
        last_read = images.rbegin()->first;
       }
+      r = images.size();
     } while (r == max_read);
 
     return 0;