]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:clean unuse code in cls_statelog_check_state 10260/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 12 Jul 2016 11:28:18 +0000 (19:28 +0800)
committerweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 9 Aug 2016 00:50:45 +0000 (08:50 +0800)
Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
src/cls/statelog/cls_statelog.cc
src/cls/statelog/cls_statelog_client.cc

index f2cbbf79672ef10370f2d440b74ba2867c3f79ec..4909d63e85c045fb509a86947ba46fabfd6e6ade 100644 (file)
@@ -279,19 +279,10 @@ static int cls_statelog_check_state(cls_method_context_t hctx, bufferlist *in, b
     return -EINVAL;
   }
 
-  string obj_index;
-  get_index_by_object(op.object, op.op_id, obj_index);
-
-  bufferlist bl;
-  int rc = cls_cxx_map_get_val(hctx, obj_index, &bl);
-  if (rc < 0) {
-    CLS_LOG(0, "could not find entry %s", obj_index.c_str());
-    return rc;
-  }
 
   cls_statelog_entry entry;
 
-  rc = get_existing_entry(hctx, op.client_id, op.op_id, op.object, entry);
+  int rc = get_existing_entry(hctx, op.client_id, op.op_id, op.object, entry);
   if (rc < 0)
     return rc;
 
index 2ba38686a08eb1fd5a910e43fb21f5fd26c33e47..bd9eb39fe8353b646852d3f4d237b897f9f69efe 100644 (file)
@@ -114,7 +114,6 @@ void cls_statelog_list(librados::ObjectReadOperation& op,
 void cls_statelog_check_state(librados::ObjectOperation& op, const string& client_id, const string& op_id, const string& object, uint32_t state)
 {
   bufferlist inbl;
-  bufferlist outbl;
   cls_statelog_check_state_op call;
   call.client_id = client_id;
   call.op_id = op_id;