]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: drop useless type conversion 19824/head
authorBingyin Zhang <zhangbingyin@cloudin.cn>
Mon, 8 Jan 2018 01:02:29 +0000 (09:02 +0800)
committerBingyin Zhang <zhangbingyin@cloudin.cn>
Mon, 8 Jan 2018 01:02:29 +0000 (09:02 +0800)
* variable 'max_buckets' is already 'uint64_t', so the type conversion is useless.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
src/rgw/rgw_op.cc

index 8267a730e1de4982edcaa3968513d5199afb7cc1..13d39e630b227aa08db36d612d67f85bd5917a5b 100644 (file)
@@ -1872,7 +1872,7 @@ void RGWListBuckets::execute()
     RGWUserBuckets buckets;
     uint64_t read_count;
     if (limit >= 0) {
-      read_count = min(limit - total_count, (uint64_t)max_buckets);
+      read_count = min(limit - total_count, max_buckets);
     } else {
       read_count = max_buckets;
     }