Homec4science

Use write connection and transactions in SQL patches

Authored by vrana <jakubv@fb.com> on Jan 17 2013, 02:55.

Description

Use write connection and transactions in SQL patches

Summary:
Patches often read from slaves (possibly stale data) and use that information to write on master.
It causes problems when applying more patches quickly after each other because data created in previous patch may not be replicated yet.

Test Plan:

$ bin/storage upgrade

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4483

Details

Committed
vrana <jakubv@fb.com>Jan 17 2013, 21:07
Pushed
aubortJan 31 2017, 17:16
Parents
rPHf896696fde99: Don't pop invalid test environment
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPHe10fdbe77eda: Use write connection and transactions in SQL patches (authored by vrana <jakubv@fb.com>).Jan 17 2013, 21:07