# HG changeset patch # User Goffi # Date 1597524833 -7200 # Node ID 3fce48c0a44dd6961efe684ce1b5a87303a79ec4 # Parent af73d57829ed7be8fdef196309d81bef09c9fc52 psql: fixed use of default value for max items in `setConfiguration` diff -r af73d57829ed -r 3fce48c0a44d sat_pubsub/pgsql_storage.py --- a/sat_pubsub/pgsql_storage.py Mon Jun 01 12:24:39 2020 +0200 +++ b/sat_pubsub/pgsql_storage.py Sat Aug 15 22:53:53 2020 +0200 @@ -531,6 +531,11 @@ if option in config: config[option] = options[option] + if config[const.OPT_MAX_ITEMS] == "max": + # XXX: "max" is default value for config we must convert + # it to an interger. See backend's _doSetNodeConfiguration comment + config[const.OPT_MAX_ITEMS] = "0" + d = self.dbpool.runInteraction(self._setConfiguration, config) d.addCallback(self._setCachedConfiguration, config) return d