mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 12:42:41 +00:00
Neilj/fix mau initial reserved users (#4211)
* fix transaction wrapping bug that caused get_user_id_by_threepid_txn to fail * towncrier * white space
This commit is contained in:
parent
944d524f18
commit
f9b136a886
2 changed files with 5 additions and 2 deletions
2
changelog.d/4211.bugfix
Normal file
2
changelog.d/4211.bugfix
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
fix start up failure when mau_limit_reserved_threepids set and db is postgres
|
||||||
|
|
|
@ -34,8 +34,9 @@ class MonthlyActiveUsersStore(SQLBaseStore):
|
||||||
self.hs = hs
|
self.hs = hs
|
||||||
self.reserved_users = ()
|
self.reserved_users = ()
|
||||||
# Do not add more reserved users than the total allowable number
|
# Do not add more reserved users than the total allowable number
|
||||||
self._initialise_reserved_users(
|
self._new_transaction(
|
||||||
dbconn.cursor(),
|
dbconn, "initialise_mau_threepids", [], [],
|
||||||
|
self._initialise_reserved_users,
|
||||||
hs.config.mau_limits_reserved_threepids[:self.hs.config.max_mau_value],
|
hs.config.mau_limits_reserved_threepids[:self.hs.config.max_mau_value],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue