diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-09-04 12:12:28 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-09-04 12:12:28 +0200 |
commit | 0b5564b86c29d00ed3b28c9112d09214ea266d23 (patch) | |
tree | 706c509977c5d6587f8089a6f2341abbb0499fb0 /mysys/lf_alloc-pin.c | |
parent | 5620937c058aa9f7cd3b122b40f8b9c94fa69997 (diff) | |
download | mariadb-git-0b5564b86c29d00ed3b28c9112d09214ea266d23.tar.gz |
1. fix an old typo. A purgatory must be cleaned on every LF_PURGATORY_SIZE freeing,
not every time.
2. Increase purgatory size.
include/lf.h:
allocate larger purgatory
mysys/lf_alloc-pin.c:
typo.
Diffstat (limited to 'mysys/lf_alloc-pin.c')
-rw-r--r-- | mysys/lf_alloc-pin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/lf_alloc-pin.c b/mysys/lf_alloc-pin.c index d23ef129aa2..6ab6ba3aae0 100644 --- a/mysys/lf_alloc-pin.c +++ b/mysys/lf_alloc-pin.c @@ -271,7 +271,7 @@ static int ptr_cmp(void **a, void **b) void _lf_pinbox_free(LF_PINS *pins, void *addr) { add_to_purgatory(pins, addr); - if (pins->purgatory_count % LF_PURGATORY_SIZE) + if (pins->purgatory_count % LF_PURGATORY_SIZE == 0) _lf_pinbox_real_free(pins); } |