Skip to content
Snippets Groups Projects
Unverified Commit 1aac27eb authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #12 from reivilibre/master

Add information from #2 to README about being race-safe
parents be6cad0d e9639774
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,14 @@ given file that would change the tables to match the calculated state. (Note
that if `-t` is given then each change to a particular state group is wrapped
in a transaction).
The SQL generated by the `-o` option is safe to apply against the database with
Synapse running. This is because the `state_groups` and `state_groups_state`
tables are append-only: once written to the database, they are never modified.
There is therefore no danger of a modification racing against a running synapse.
Further, this script makes its changes within atomic transactions, and each
transaction should not affect the results from any of the queries that synapse
performs.
The tool will also ensure that the generated state deltas do give the same state
as the existing state deltas.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment