Skip to content

Commit

Permalink
Only look at ZEO_MSGPACK if msgpack ZConfig option wasn't used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jan 12, 2017
1 parent 7947a0c commit dad1a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ZEO/runzeo.py
Expand Up @@ -343,7 +343,8 @@ def create_server(storages, options):
storages,
read_only = options.read_only,
client_conflict_resolution=options.client_conflict_resolution,
msgpack=options.msgpack or os.environ.get('ZEO_MSGPACK'),
msgpack=(options.msgpack if isinstance(options.msgpack, bool)
else os.environ.get('ZEO_MSGPACK')),
invalidation_queue_size = options.invalidation_queue_size,
invalidation_age = options.invalidation_age,
transaction_timeout = options.transaction_timeout,
Expand Down
2 changes: 1 addition & 1 deletion src/ZEO/server.xml
Expand Up @@ -115,7 +115,7 @@
</description>
</key>

<key name="msgpack" datatype="boolean" required="no" default="false">
<key name="msgpack" datatype="boolean" required="no">
<description>
Use msgpack to serialize and de-serialize ZEO protocol messages.

Expand Down

0 comments on commit dad1a01

Please sign in to comment.