예제 #1
0
        def consume(msg):
            # just check the methods
            "%s: %s" % (cur.io_timestamp, repr(msg))

            self.msg_count += 1
            if self.msg_count > 3:
                cur.send_feedback(reply=True)
                raise StopReplication()

            cur.send_feedback(flush_lsn=msg.data_start)
예제 #2
0
        def consume(msg):
            # just check the methods
            f"{cur.io_timestamp}: {repr(msg)}"
            f"{cur.feedback_timestamp}: {repr(msg)}"
            f"{cur.wal_end}: {repr(msg)}"

            self.msg_count += 1
            if self.msg_count > 3:
                cur.send_feedback(reply=True)
                raise StopReplication()

            cur.send_feedback(flush_lsn=msg.data_start)
예제 #3
0
 def consume(msg):
     raise StopReplication()