]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
return value of handle_message for MSG_OSD_SUBOP/MSG_OSD_SUBOPREPLY should be true 2705/head
authorxinxin shu <xinxin.shu@intel.com>
Sat, 11 Oct 2014 01:29:42 +0000 (09:29 +0800)
committerxinxin shu <xinxin.shu@intel.com>
Sat, 11 Oct 2014 01:39:16 +0000 (09:39 +0800)
if the return value is true , it will skip unnecessary checks

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
src/osd/ReplicatedBackend.cc

index a98e9291e246cb1e26596416037e8bd352d13013..2940dc8dcd49b6609d83ddc59e9beb616a1b019d 100644 (file)
@@ -158,6 +158,7 @@ bool ReplicatedBackend::handle_message(
       }
     } else {
       sub_op_modify(op);
+      return true;
     }
     break;
   }
@@ -174,6 +175,7 @@ bool ReplicatedBackend::handle_message(
       }
     } else {
       sub_op_modify_reply(op);
+      return true;
     }
     break;
   }