1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications
epriestley ee1e2da8fb Avoid Timeline race condition
Summary: While I should fix the transactional stuff, that patch is going to be
tricky and transactions have some performance implications. This is a simple
fix which prevents the race.

Instead of having the data point at the event ID, have the event point at a
data ID. Insert the data first, then insert the event with the right data
pointer. This is super simple and prevents the race issue.

Test Plan:
  - Ran the schema upgrade script, verified that the database was
    correctly upgraded. Was also prompted to stop daemons.
  - Ran 'repository-launch-master', verified that the discovery daemons were
    able to discover new commits and insert events for them. Verified the
    committask daemon was consuming events and converting them into tasks.
  - Verified new tasks looked correct in the database.
  - Browsed web interface.

Reviewers: jungejason

CC: tuomaspelkonen

Differential Revision: 133
2011-04-14 10:12:10 -07:00
..
auth Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
base Automatically redirect 404's that wouldn't be 404s if they had a trailing slash 2011-04-04 10:29:46 -07:00
conduit Allow new Conduit clients by default. 2011-04-13 19:31:01 -07:00
daemon/controller Avoid Timeline race condition 2011-04-14 10:12:10 -07:00
differential Image macros for Phabricator! 2011-04-13 20:08:13 -07:00
diffusion 100-file cutoff for Diffusion 2011-04-07 16:56:25 -07:00
directory Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
draft/storage Revision comment drafts. 2011-02-05 16:57:21 -08:00
files Image macros for Phabricator! 2011-04-13 20:08:13 -07:00
herald Added a link to the actual object in Herald transcript. 2011-04-12 11:35:26 -07:00
maniphest Removed extra space from Maniphest email subject line. 2011-04-11 12:47:10 -07:00
metamta Fix 'Transcript' links in Differential 2011-04-08 01:10:05 -07:00
owners Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
people Fix systemAgent stuff. 2011-04-12 19:00:54 -07:00
phid Fix 'Transcript' links in Differential 2011-04-08 01:10:05 -07:00
preferences/controller Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
project Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
repository Fix message IDs and Herald URIs. 2011-04-10 08:46:39 -07:00
search Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
status/base Add /status/ 2011-04-08 11:13:51 -07:00
typeahead/controller Basic create_user script plus rough system agent support. 2011-04-12 18:34:53 -07:00
uiexample Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
xhpastview Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
xhprof Lint fluff. 2011-02-06 12:58:01 -08:00