mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
rgw/op: kill compiling warning
rgw/rgw_op.cc: In member function 'virtual int RGWCreateBucket::verify_permission()': rgw/rgw_op.cc:1810:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (buckets.count() >= s->user->max_buckets) { Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
This commit is contained in:
parent
ac8c40f3e3
commit
1cd489de7d
@ -1807,7 +1807,7 @@ int RGWCreateBucket::verify_permission()
|
||||
if (op_ret < 0)
|
||||
return op_ret;
|
||||
|
||||
if (buckets.count() >= s->user->max_buckets) {
|
||||
if ((int)buckets.count() >= s->user->max_buckets) {
|
||||
return -ERR_TOO_MANY_BUCKETS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user