Skip to content

Commit

Permalink
don't overwrite stack during slab_automove
Browse files Browse the repository at this point in the history
every time slab_automove would run it would segfault immediately, since the
call out into items.c would overwrite its stack.
  • Loading branch information
dormando committed Apr 20, 2015
1 parent a2fc8e9 commit b43ecd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion items.c
Expand Up @@ -488,7 +488,7 @@ void item_stats_evictions(uint64_t *evicted) {
for (x = 0; x < 4; x++) {
i = n | lru_type_map[x];
pthread_mutex_lock(&lru_locks[i]);
evicted[i] = itemstats[i].evicted;
evicted[n] += itemstats[i].evicted;
pthread_mutex_unlock(&lru_locks[i]);
}
}
Expand Down

0 comments on commit b43ecd6

Please sign in to comment.