]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rbd: fix typo and coding style 8635/head
authorrunsisi <runsisi@zte.com.cn>
Mon, 18 Apr 2016 01:16:41 +0000 (09:16 +0800)
committerrunsisi <runsisi@hust.edu.cn>
Fri, 22 Apr 2016 14:16:12 +0000 (22:16 +0800)
Signed-off-by: runsisi <runsisi@zte.com.cn>
src/cls/rbd/cls_rbd.cc

index 39211bfbfa17a93bbe4bc7bcebc7333f91359db0..0d48c48a2f967d85da29005892e6f1a243b7a240 100644 (file)
@@ -2525,7 +2525,7 @@ static const string metadata_name_from_key(const string &key)
  * Input:
  * @param start_after which name to begin listing after
  *        (use the empty string to start at the beginning)
- * @param max_return the maximum number of names to lis(if 0 means no limit)
+ * @param max_return the maximum number of names to list(if 0 means no limit)
 
  * Output:
  * @param value
@@ -2568,7 +2568,7 @@ int metadata_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
 
     last_read = raw_data.rbegin()->first;
     if (max_return)
-      max_read = MIN(RBD_MAX_KEYS_READ, max_return-data.size());
+      max_read = MIN(RBD_MAX_KEYS_READ, max_return - data.size());
   } while (max_read);
 
   ::encode(data, *out);