Commit dc85ab7e authored by Julien Muchembled's avatar Julien Muchembled

master: fix internal replication while trying to connect to upstream master

This fixes a regression in commit ad01f379
("fix leaving backup mode, including truncating to consistent TID")
parent 743b207c
......@@ -299,6 +299,7 @@ class BackupApplication(object):
result = None if primary else app.pt.setUpToDate(node, offset)
assert cell.isReadable()
if result: # was out-of-date
if primary_node is not None:
max_tid, = [x.backup_tid for x in cell_list
if x.getNode() is primary_node]
if tid < max_tid:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment