summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2017-06-04 11:59:13 -0700
committerdormando <dormando@rydia.net>2017-06-04 11:59:13 -0700
commit9d32ffb17947c5c511db24fa354631c04efc6d1b (patch)
tree4f67bcba739a8b4593b483965fadb30b4e9adb24 /scripts
parentf600354e830b18b0d67a0fa275a846e11e47811f (diff)
downloadmemcached-9d32ffb17947c5c511db24fa354631c04efc6d1b.tar.gz
memcached-automove script fix
reported by hobbs. my python is so bad :(
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/memcached-automove2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/memcached-automove b/scripts/memcached-automove
index 98ba6dc..95d6812 100755
--- a/scripts/memcached-automove
+++ b/scripts/memcached-automove
@@ -58,7 +58,7 @@ def determine_move(history, diffs, totals):
decision = (-1, -1)
for sid, slab in diffs.items():
w[sid] = {}
- if 'evicted_d' not in slab:
+ if 'evicted_d' not in slab or 'total_pages_d' not in slab:
continue
# mark this window as dirty if total pages increases or evictions
# happened