Merge pull request #10589 from Yan-waller/yj-wip-rgwcls-0805

rgw: remove unused variables

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2016-08-08 14:08:37 -04:00 committed by GitHub
commit d565e8904e
2 changed files with 0 additions and 9 deletions

View File

@ -436,8 +436,6 @@ int rgw_bucket_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
return rc;
}
bufferlist bl;
map<string, bufferlist> keys;
std::map<string, bufferlist>::iterator kiter;
string start_key;
@ -514,8 +512,6 @@ static int check_index(cls_method_context_t hctx, struct rgw_bucket_dir_header *
calc_header->tag_timeout = existing_header->tag_timeout;
calc_header->ver = existing_header->ver;
bufferlist bl;
map<string, bufferlist> keys;
string start_obj;
string filter_prefix;
@ -592,7 +588,6 @@ int rgw_bucket_rebuild_index(cls_method_context_t hctx, bufferlist *in, bufferli
int rgw_bucket_init_index(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
{
bufferlist bl;
bufferlist::iterator iter;
bufferlist header_bl;
@ -2958,7 +2953,6 @@ static int gc_omap_remove(cls_method_context_t hctx, int type, const string& key
string index = gc_index_prefixes[type];
index.append(key);
bufferlist bl;
int ret = cls_cxx_map_remove_key(hctx, index);
if (ret < 0)
return ret;

View File

@ -415,7 +415,6 @@ int cls_cxx_map_get_all_vals(cls_method_context_t hctx, map<string, bufferlist>*
string start_after;
string filter_prefix;
uint64_t max = (uint64_t)-1;
bufferlist inbl;
::encode(start_after, op.indata);
::encode(max, op.indata);
@ -471,8 +470,6 @@ int cls_cxx_map_get_vals(cls_method_context_t hctx, const string &start_obj,
OSDOp& op = ops[0];
int ret;
bufferlist inbl;
::encode(start_obj, op.indata);
::encode(max_to_get, op.indata);
::encode(filter_prefix, op.indata);