[tor-commits] [pytorctl/master] placeholder for call to refresh_all()
mikeperry at torproject.org
mikeperry at torproject.org
Thu Sep 1 01:15:57 UTC 2011
commit 741cc04db278cede4bbe0c9e0147066fbfd00a4b
Author: aagbsn <aagbsn at extc.org>
Date: Thu Jul 7 15:21:26 2011 -0700
placeholder for call to refresh_all()
suspicious session behavior may require refreshing all
objects in order to keep tc_session and sessions bound
to Elixir synchronized
---
SQLSupport.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/SQLSupport.py b/SQLSupport.py
index c9951d7..718bf35 100644
--- a/SQLSupport.py
+++ b/SQLSupport.py
@@ -772,6 +772,8 @@ class ConsensusTrackerListener(TorCtl.DualEventListener):
tc_session.add(r)
plog("INFO", "Consensus db updated")
tc_session.commit()
+ # testing
+ #refresh_all() # Too many sessions, don't trust commit()
def update_consensus(self):
plog("INFO", "Updating DB with full consensus.")
More information about the tor-commits
mailing list