Commit 743b207c authored by Julien Muchembled's avatar Julien Muchembled

master: do never try to truncate the whole DB when leaving backup mode

parent 7f740f33
...@@ -145,6 +145,7 @@ class BackupApplication(object): ...@@ -145,6 +145,7 @@ class BackupApplication(object):
poll(1) poll(1)
last_tid = app.getLastTransaction() last_tid = app.getLastTransaction()
if tid < last_tid: if tid < last_tid:
assert tid != ZERO_TID
logging.warning("Truncating at %s (last_tid was %s)", logging.warning("Truncating at %s (last_tid was %s)",
dump(app.backup_tid), dump(last_tid)) dump(app.backup_tid), dump(last_tid))
p = Packets.AskTruncate(tid) p = Packets.AskTruncate(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