[tor-bugs] #5232 [BridgeDB]: Import bridges into BridgeDB in a separate thread and database transaction

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 31 20:44:03 UTC 2014


#5232: Import bridges into BridgeDB in a separate thread and database transaction
--------------------------+--------------------------
     Reporter:  karsten   |      Owner:  isis
         Type:  defect    |     Status:  needs_review
     Priority:  major     |  Milestone:
    Component:  BridgeDB  |    Version:
   Resolution:            |   Keywords:  important
Actual Points:            |  Parent ID:
       Points:            |
--------------------------+--------------------------

Comment (by sysrqb):

 I finally found some time to rebase my branch onto master. Travis seems to
 like it also [0]. bug5232_rebased_1 in my
 [https://gitweb.torproject.org/user/sysrqb/bridgedb.git/shortlog/refs/heads/bug5232_rebased_1
 public repo]. It's not great, but it's a slightly-hacky improvement to
 what we have now. The short description of this patch is that we allow one
 database connection per thread. Whenever we open a connection, it is added
 to a dict that is indexed by TIDs. Storage.getDB() provides an interface
 for opening a new connection or retrieving an existing connection.

 [0] https://travis-ci.org/sysrqbci/bridgedb/builds/17997258

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5232#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list