From 8a89b49df16c735da8dff01fd4ca1a237893a32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 28 Mar 2013 23:20:17 +0100 Subject: [PATCH] update cache items count after restore --- core/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cache.c b/core/cache.c index e147f976..2d85eca5 100644 --- a/core/cache.c +++ b/core/cache.c @@ -533,7 +533,8 @@ void uwsgi_cache_fix(struct uwsgi_cache *uc) { } } - uwsgi_log("[uwsgi-cache] restored %llu items\n", restored); + uc->n_items = restored; + uwsgi_log("[uwsgi-cache] restored %llu items\n", uc->n_items); } int uwsgi_cache_set2(struct uwsgi_cache *uc, char *key, uint16_t keylen, char *val, uint64_t vallen, uint64_t expires, uint64_t flags) {