aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-08-07 19:00:26 +0000
committerRob Austein <sra@hactrn.net>2014-08-07 19:00:26 +0000
commitb01cefe6bcfeeaea58b1dc54caedb53aa6952150 (patch)
tree9043ca2fd2e7853a1c374a99c10f7ceb62b65e43 /rpki/pubd.py
parentff33e2a335a01f2b438c84f7108cae37eb444e45 (diff)
Notes
svn path=/branches/tk705/; revision=5916
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index 4f1ea417..ae2265bf 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -226,9 +226,13 @@ class main(object):
# Should SQL commit here
- # These could be merged, and perhaps should be.
- self.session.write_snapshot()
+ # These could be merged, and perhaps should be, among other
+ # reasons because we need to do something about expiring old
+ # deltas and deleting old XML files, and it's probably easier
+ # to avoid race conditions if we do this all in one place.
+
self.session.write_deltas()
+ self.session.write_snapshot()
self.session.write_notification()
# Somewhere around here is also where we should finally write