1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
Neil Johnson
b0072d9733 white space 2018-11-20 22:01:07 +00:00
Neil Johnson
b240467ea1 towncrier 2018-11-20 18:26:59 +00:00
Neil Johnson
ffc71bc06c fix transaction wrapping bug that caused get_user_id_by_threepid_txn to fail 2018-11-20 18:23:11 +00:00
2 changed files with 5 additions and 2 deletions

2
changelog.d/4211.bugfix Normal file
View File

@@ -0,0 +1,2 @@
fix start up failure when mau_limit_reserved_threepids set and db is postgres

View File

@@ -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],
)