diff options
author | Erik Johnston <erik@matrix.org> | 2020-11-13 11:53:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 11:53:51 +0000 |
commit | 1b15a3d92cbe1ee9475319ff81abe8760d6be19f (patch) | |
tree | 012224f584228dd8892a4803079ab0996a427326 /changelog.d/8755.bugfix | |
parent | Cache event ID to auth event IDs lookups (#8752) (diff) | |
download | synapse-1b15a3d92cbe1ee9475319ff81abe8760d6be19f.tar.xz |
Fix port script so that it can be run again after failure. (#8755)
If the script fails (or is CTRL-C'ed) between porting some of the events table and copying of the sequences then the port script will immediately die if run again due to the postgres DB having inconsistencies between sequences and tables. The fix is to move the porting of sequences to before porting the tables, so that there is never a period where the Postgres DB is inconsistent. To do that we need to change how we port the sequences so that it calculates the values from the SQLite DB rather than the Postgres DB. Fixes #8619
Diffstat (limited to 'changelog.d/8755.bugfix')
-rw-r--r-- | changelog.d/8755.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/8755.bugfix b/changelog.d/8755.bugfix new file mode 100644 index 0000000000..42bbed3ac2 --- /dev/null +++ b/changelog.d/8755.bugfix @@ -0,0 +1 @@ +Fix port script so that it can be run again after a failure. Broke in v1.21.0. |