aboutsummaryrefslogtreecommitdiff
path: root/rtr-origin
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2011-05-03 01:36:03 +0000
committerRob Austein <sra@hactrn.net>2011-05-03 01:36:03 +0000
commit744fc5d997be00bce1911080cb939b3a00678e40 (patch)
tree97f057e62c01b381c2226c92b0cd88c93c8556cd /rtr-origin
parentcd4c492d770f0ff9bfbfaf83e4a4da3ebeb234aa (diff)
Hack to disable incremental dumps, for debugging
svn path=/rtr-origin/rtr-origin.py; revision=3797
Diffstat (limited to 'rtr-origin')
-rwxr-xr-xrtr-origin/rtr-origin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtr-origin/rtr-origin.py b/rtr-origin/rtr-origin.py
index 4c39d5d4..b769a8e4 100755
--- a/rtr-origin/rtr-origin.py
+++ b/rtr-origin/rtr-origin.py
@@ -26,6 +26,8 @@
import sys, os, struct, time, glob, socket, fcntl, signal, syslog
import asyncore, asynchat, subprocess, traceback, getopt, bisect, random
+# Debugging only, should be False in production
+disable_incrementals = False
class IgnoreThisRecord(Exception):
pass
@@ -341,6 +343,8 @@ class serial_query(pdu_with_serial):
log("[Client is already current, sending empty IXFR]")
server.push_pdu(cache_response(nonce = server.current_nonce))
server.push_pdu(end_of_data(serial = server.current_serial, nonce = server.current_nonce))
+ elif disable_incrementals:
+ server.push_pdu(cache_reset())
else:
try:
self.send_file(server, "%d.ix.%d" % (server.current_serial, self.serial))