[or-cvs] [pytorctl/master] Use labels for another Router query...
mikeperry at torproject.org
mikeperry at torproject.org
Wed Jun 23 07:19:12 UTC 2010
Author: Forgot to set <forgot at tosetit>
Date: Wed, 23 Jun 2010 00:16:18 -0700
Subject: Use labels for another Router query...
Commit: 0cc2a8e0eeba48e6780f6079a29fe5574ed4f381
I should really figure out why this is happening, and which other queries
might need this... SQLAlchemy said we needed it on this line (in some rare
case - not always). Possible SQLAlchemy bug/corruption?
---
SQLSupport.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/SQLSupport.py b/SQLSupport.py
index 7bf67e0..6da5938 100644
--- a/SQLSupport.py
+++ b/SQLSupport.py
@@ -802,7 +802,7 @@ class CircuitListener(TorCtl.PreEventListener):
if self.track_parent:
for r in self.parent_handler.circuits[c.circ_id].path:
rq = Router.query.options(eagerload('circuits')).filter_by(
- idhex=r.idhex).one()
+ idhex=r.idhex).with_labels().one()
circ.routers.append(rq)
#rq.circuits.append(circ) # done automagically?
#tc_session.add(rq)
--
1.7.1
More information about the tor-commits
mailing list