'This flushes the transaction log.
This function should be called by the client before performing
potential dangerous actions so the server can get notified in case
the whole machine crashes.'

def SyncTransactionLog(self):

    if (self.nanny_controller is None):
        self.nanny_controller = client_utils.NannyController()
    self.nanny_controller.SyncTransactionLog()
