diff options
author | Rob Austein <sra@hactrn.net> | 2010-07-15 18:20:19 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-07-15 18:20:19 +0000 |
commit | 0438d53755d2b146925724e93445943c03a2cff4 (patch) | |
tree | 93128b18eeac48ee63bf1b74d95aeadb9e9b1959 | |
parent | 5c4f16e99335188d5066065ad029e402b14ea88c (diff) |
Paranoia
svn path=/rpkid/rpki/left_right.py; revision=3407
-rw-r--r-- | rpkid/rpki/left_right.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py index 5f1a68ef..6604d136 100644 --- a/rpkid/rpki/left_right.py +++ b/rpkid/rpki/left_right.py @@ -486,6 +486,14 @@ class self_elt(data_elt): self.gctx.checkpoint() + if self.gctx.sql.dirty: + rpki.log.warn("Unexpected dirty SQL cache, flushing") + self.gctx.sql.sweep() + + ## @todo + # This doesn't look right, <asn, prefixlist> may not be unique + # during some transient states. Need rewriting. + # roas = dict(((r.asn, str(r.ipv4), str(r.ipv6)), r) for r in self.roas()) publisher = rpki.rpki_engine.publication_queue() |