# HG changeset patch # User Goffi # Date 1663949090 -7200 # Node ID e814c98ef07ad8ca92abe1e4023bd03c24e6c5ab # Parent 8bbaa089cb107224da559e12e036ea7728c8192b psql: fix `max_items` setting when creating a node diff -r 8bbaa089cb10 -r e814c98ef07a sat_pubsub/pgsql_storage.py --- a/sat_pubsub/pgsql_storage.py Tue Sep 06 11:33:34 2022 +0200 +++ b/sat_pubsub/pgsql_storage.py Fri Sep 23 18:04:50 2022 +0200 @@ -286,29 +286,31 @@ cursor.execute("""INSERT INTO nodes (node, node_type, + access_model, persist_items, deliver_payloads, - send_last_published_item, - access_model, - publish_model, + max_items, overwrite_policy, serial_ids, consistent_publisher, fts_language, + send_last_published_item, + publish_model, schema, pep) VALUES - (%s, 'leaf', %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)""", + (%s, 'leaf', %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)""", (nodeIdentifier, + config[const.OPT_ACCESS_MODEL], config['pubsub#persist_items'], config['pubsub#deliver_payloads'], - config['pubsub#send_last_published_item'], - config[const.OPT_ACCESS_MODEL], - config[const.OPT_PUBLISH_MODEL], + config[const.OPT_MAX_ITEMS], config[const.OPT_OVERWRITE_POLICY], config[const.OPT_SERIAL_IDS], config[const.OPT_CONSISTENT_PUBLISHER], config[const.OPT_FTS_LANGUAGE], + config['pubsub#send_last_published_item'], + config[const.OPT_PUBLISH_MODEL], schema, recipient.userhost() if pep else None )