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:
Yan Jun 2016-06-04 20:08:11 +08:00
parent ac8c40f3e3
commit 1cd489de7d

View File

@ -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;
}
}