]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop duplicated put of message
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 22 Mar 2016 07:36:35 +0000 (15:36 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 23 Mar 2016 00:43:24 +0000 (08:43 +0800)
On returning false, the require_mon_peer() will internally decrease
the reference of the input message.

So the put() method here is duplicated and will cause reference
underflow and thus need to be dropped.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index 298d65df454f192cc6881f72d06bd279dfb019cb..b3b58453899739d2276c4a67ee7bac673a78691a 100644 (file)
@@ -5070,7 +5070,6 @@ void OSD::handle_pg_stats_ack(MPGStatsAck *ack)
   dout(10) << "handle_pg_stats_ack " << dendl;
 
   if (!require_mon_peer(ack)) {
-    ack->put();
     return;
   }