]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG.cc: use static_cast instead of c-style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 5 Mar 2015 02:47:31 +0000 (03:47 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 11 Mar 2015 12:58:41 +0000 (13:58 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/ReplicatedPG.cc

index 057564c37a1d6b2f6a5ed734b486702a290ce02d..3b6184118d2d409c7d00123d59a4c74b1ef2368a 100644 (file)
@@ -7528,7 +7528,7 @@ void ReplicatedPG::eval_repop(RepGather *repop)
             waiting_for_ack[repop->v].begin();
           i != waiting_for_ack[repop->v].end();
           ++i) {
-       MOSDOp *m = (MOSDOp*)i->first->get_req();
+       MOSDOp *m = static_cast<MOSDOp*>(i->first->get_req());
        MOSDOpReply *reply = new MOSDOpReply(m, 0, get_osdmap()->get_epoch(), 0, true);
        reply->set_reply_versions(repop->ctx->at_version,
                                  i->second);