1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 15:21:03 +01:00
phorge-phorge/src/storage
epriestley 4ac29d108c Simplify Aphront transaction code
Summary:
In D1515, I introduced some excessively-complicated semantics for detecting
connections that are lost while transactional. These semantics cause us to
reenter establishConnection() and establish twice as many connections as we need
in the common case.

We don't need a hook there at all -- it's sufficient to throw the exception
rather than retrying the query when we encounter it. This doesn't have
reentrancy problems.

Test Plan:
  - Added some encapsulation-violating hooks and a unit test for them
  - Verified we no longer double-connect.

Reviewers: btrahan, nh

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T835

Differential Revision: https://secure.phabricator.com/D1576
2012-02-07 14:58:37 -08:00
..
connection Simplify Aphront transaction code 2012-02-07 14:58:37 -08:00
exception Improve schema upgrade workflow for unprivileged users 2011-04-30 00:50:48 -07:00
lisk/dao Restore Lisk transactional methods 2012-01-31 12:07:34 -08:00
qsprintf Drive Differential landing page with DifferentialRevisionQuery, simplify UI 2011-12-16 13:21:54 -08:00
queryfx Provide basic Conduit documentation. 2011-07-04 12:03:36 -07:00
transaction Restore Lisk transactional methods 2012-01-31 12:07:34 -08:00