]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/ConfigMonitor: clean up prepare_command() 20911/head
authorGu Zhongyan <guzhongyan@360.cn>
Thu, 15 Mar 2018 09:35:02 +0000 (17:35 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Thu, 15 Mar 2018 09:35:02 +0000 (17:35 +0800)
no more paxos->get_pending_transaction()

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
src/mon/ConfigMonitor.cc

index ef02643b073d85c7dce190ba44a51112ca137562..ead210fb884e5806b7f30d1beb204577e8bc5a13 100644 (file)
@@ -389,7 +389,6 @@ bool ConfigMonitor::prepare_command(MonOpRequestRef op)
     }
     key += name;
 
-    MonitorDBStore::TransactionRef t = paxos->get_pending_transaction();
     if (prefix == "config set") {
       bufferlist bl;
       bl.append(value);