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

Commit 6eb3ede

Browse files
authored
Fix the 'set_device_id_for_pushers_txn' background update. (#15391)
Refer to the correct field from the response when updating the background update progress.
1 parent 6d10337 commit 6eb3ede

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/15391.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the `set_device_id_for_pushers_txn` background update crash.

synapse/storage/databases/main/pusher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def set_device_id_for_pushers_txn(txn: LoggingTransaction) -> int:
562562
)
563563

564564
self.db_pool.updates._background_update_progress_txn(
565-
txn, "set_device_id_for_pushers", {"pusher_id": rows[-1]["id"]}
565+
txn, "set_device_id_for_pushers", {"pusher_id": rows[-1]["pusher_id"]}
566566
)
567567

568568
return len(rows)

0 commit comments

Comments
 (0)