From 446627e3055972fe883236f4cf4ea31c32c50d89 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 21 Sep 2012 12:58:34 +0200 Subject: [PATCH] Fix iteration on redis keys --- tools/reset_styles | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/reset_styles b/tools/reset_styles index 13cace58..53b736dc 100755 --- a/tools/reset_styles +++ b/tools/reset_styles @@ -13,19 +13,23 @@ var client = redis.createClient(REDIS_PORT, 'localhost'); client.on('connect', function() { client.select(dbnum); client.keys('map_style|*', function(err, matches) { - for (var i=0; i