Skip to content
Snippets Groups Projects
Commit f9b136a8 authored by Neil Johnson's avatar Neil Johnson Committed by Amber Brown
Browse files

Neilj/fix mau initial reserved users (#4211)

* fix transaction wrapping bug that caused get_user_id_by_threepid_txn to fail

* towncrier

* white space
parent 944d524f
No related branches found
No related tags found
No related merge requests found
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.reserved_users = ()
# Do not add more reserved users than the total allowable number
self._initialise_reserved_users(
dbconn.cursor(),
self._new_transaction(
dbconn, "initialise_mau_threepids", [], [],
self._initialise_reserved_users,
hs.config.mau_limits_reserved_threepids[:self.hs.config.max_mau_value],
)
......
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