Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit f77e472

Browse files
committed
Fix port db script
1 parent 00ad613 commit f77e472

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

synapse/_scripts/synapse_port_db.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
"ui_auth_sessions",
197197
"ui_auth_sessions_credentials",
198198
"ui_auth_sessions_ips",
199+
# Ignore the worker locks table, as a) there shouldn't be any acquired locks
200+
# after porting, and b) the circular foreign key constraints make it hard to
201+
# port.
202+
"worker_read_write_locks_mode",
203+
"worker_read_write_locks",
199204
}
200205

201206

@@ -803,7 +808,9 @@ def alter_table(txn: LoggingTransaction) -> None:
803808
)
804809
# Map from table name to args passed to `handle_table`, i.e. a tuple
805810
# of: `postgres_size`, `table_size`, `forward_chunk`, `backward_chunk`.
806-
tables_to_port_info_map = {r[0]: r[1:] for r in setup_res}
811+
tables_to_port_info_map = {
812+
r[0]: r[1:] for r in setup_res if r[0] not in IGNORED_TABLES
813+
}
807814

808815
# Step 5. Do the copying.
809816
#

0 commit comments

Comments
 (0)