Switch lock memcache pool from binary to ascii protocol.

This commit is contained in:
Brian Simpson
2015-07-31 23:24:21 -04:00
parent 1d8909b82c
commit 074bed98ef

View File

@@ -690,11 +690,12 @@ class Globals(object):
# a smaller pool of caches used only for distributed locks.
# TODO: move this to ZooKeeper
self.lock_cache = CMemcache("lock",
self.lockcaches,
binary=True,
num_clients=num_mc_clients,
validators=[validate_size_error],)
self.lock_cache = CMemcache(
"lock",
self.lockcaches,
num_clients=num_mc_clients,
validators=[validate_size_error],
)
self.make_lock = make_lock_factory(self.lock_cache, self.stats)
# memcaches used in front of the permacache CF in cassandra.