comparison sat_pubsub/pgsql_storage.py @ 472:d993e8b0fd60

psql: return Deferred is not options field is specified in `setConfiguration`: fix 391
author Goffi <goffi@goffi.org>
date Thu, 21 Oct 2021 18:12:16 +0200
parents d86e0f8a1405
children b544109ab4c4
comparison
equal deleted inserted replaced
471:ed9e12701e0f 472:d993e8b0fd60
596 596
597 for option in to_delete: 597 for option in to_delete:
598 del options.fields[option] 598 del options.fields[option]
599 599
600 if not options.fields: 600 if not options.fields:
601 return 601 return defer.succeed(None)
602 602
603 if options.get(const.OPT_MAX_ITEMS) == "max": 603 if options.get(const.OPT_MAX_ITEMS) == "max":
604 # XXX: "max" is default value for config we must convert 604 # XXX: "max" is default value for config we must convert
605 # it to an interger. See backend's _doSetNodeConfiguration comment 605 # it to an interger. See backend's _doSetNodeConfiguration comment
606 options[const.OPT_MAX_ITEMS] = "0" 606 options[const.OPT_MAX_ITEMS] = "0"