From 77f008e24cfcc9abd5f90027272f4eabc0af2535 Mon Sep 17 00:00:00 2001 From: Danila Shtan Date: Wed, 12 Feb 2014 18:20:39 +0500 Subject: [PATCH] fix unmark interval inside cache_update --- core/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cache.c b/core/cache.c index f5b875b7..91af4228 100644 --- a/core/cache.c +++ b/core/cache.c @@ -786,7 +786,7 @@ int uwsgi_cache_set2(struct uwsgi_cache *uc, char *key, uint16_t keylen, char *v uc->blocks_bitmap_pos = uci->first_block + needed_blocks; } // unmark the old blocks - cache_unmark_blocks(uc, uci->first_block, uci->valsize); + cache_unmark_blocks(uc, old_first_block, uci->valsize); } if ( !(flags & UWSGI_CACHE_FLAG_MATH)) { memcpy(((char *) uc->data) + (uci->first_block * uc->blocksize), val, vallen);