From: runsisi Date: Mon, 18 Apr 2016 01:16:41 +0000 (+0800) Subject: cls_rbd: fix typo and coding style X-Git-Tag: v11.0.0~798^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bcbeb084f5162a66031b06f6a24acf2a47d4424c;p=ceph.git cls_rbd: fix typo and coding style Signed-off-by: runsisi --- diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index 39211bfbfa17..0d48c48a2f96 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -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);