]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rados.cc: remove dead assignment / unused variable 'obj_name'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 23:47:32 +0000 (01:47 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 23:47:32 +0000 (01:47 +0200)
Fix for:
[src/rgw/rgw_main.cc:1086]: (style) Variable 'frontend_frameworks'
 is assigned a value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index 761674e5d75849e30f2874e16e266e3adffebddb..ecf210d677b162da32ac54347a5dfaddeb79fa00 100644 (file)
@@ -770,8 +770,6 @@ int RGWObjManifest::generator::create_next(uint64_t ofs)
   if (ofs < last_ofs) /* only going forward */
     return -EINVAL;
 
-  string obj_name = manifest->prefix;
-
   uint64_t max_head_size = manifest->get_max_head_size();
 
   if (ofs <= max_head_size) {
@@ -791,7 +789,6 @@ int RGWObjManifest::generator::create_next(uint64_t ofs)
   last_ofs = ofs;
   manifest->set_obj_size(ofs);
 
-
   manifest->get_implicit_location(cur_part_id, cur_stripe, ofs, NULL, &cur_obj);
 
   manifest->update_iterators();