From 074bed98efbc35b4938df6aaaaaf7627fa15acea Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Fri, 31 Jul 2015 23:24:21 -0400 Subject: [PATCH] Switch lock memcache pool from binary to ascii protocol. --- r2/r2/lib/app_globals.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/r2/r2/lib/app_globals.py b/r2/r2/lib/app_globals.py index 6de834796..071692b96 100644 --- a/r2/r2/lib/app_globals.py +++ b/r2/r2/lib/app_globals.py @@ -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.