]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rbd: use already defined local var instead of constant
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 25 Jun 2012 23:43:36 +0000 (16:43 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 28 Jun 2012 19:33:20 +0000 (12:33 -0700)
This occurrence was meant to be replaced in the original commit.

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

index 64d783ae6be05a66b74c5af2b1884e9665ceedc3..36cf09fcab4e829307f3d027002270a662830ea4 100644 (file)
@@ -888,7 +888,7 @@ int get_snapcontext(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
     }
     if (keys.size() > 0)
       last_read = *(keys.rbegin());
-  } while (r == RBD_MAX_KEYS_READ);
+  } while (r == max_read);
 
   uint64_t snap_seq;
   r = read_key(hctx, "snap_seq", &snap_seq);