def msg_garbagecollect(self, conn, msg):
        if self.debug: self.logger.write("Paxos State",
                                         msg.commandnumber % "Doing garbage collection upto %d")
        success = self.quorumaccepted.truncateto(msg.commandnumber)
        if success:
            self.objectsnapshot = (msg.commandnumber,pickle.loads(msg.snapshot))
        else:
            if self.debug: self.logger.write("Garbage Collection Error",
                                             "Garbege Collection failed.")

## PAXOS REPLICA MESSAGE HANDLERS
dataset/ETHPy150Open denizalti/concoord/concoord/replica.py/Replica.msg_garbagecollect/swapped operands of `%`