From 74d050d000ff9db79e36931988386fe7988f8dd2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 17 Aug 2006 15:20:58 +0200 Subject: maria transaction manager with unit tests include/lf.h: few lf API changes mysys/lf_alloc-pin.c: few lf API changes mysys/lf_dynarray.c: few lf API changes mysys/lf_hash.c: few lf API changes storage/maria/Makefile.am: transaction manager unittest/Makefile.am: maria transaction manager unittest/mysys/my_atomic-t.c: ensure that values are positive storage/maria/trxman.h: New BitKeeper file ``storage/maria/trxman.h'' unittest/maria/Makefile.am: New BitKeeper file ``unittest/maria/Makefile.am'' unittest/maria/trxman-t.c: New BitKeeper file ``unittest/maria/trxman-t.c'' storage/maria/trxman.c: comment clarified --- mysys/lf_alloc-pin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mysys/lf_alloc-pin.c') diff --git a/mysys/lf_alloc-pin.c b/mysys/lf_alloc-pin.c index a9ea1802c03..cf1612b73d1 100644 --- a/mysys/lf_alloc-pin.c +++ b/mysys/lf_alloc-pin.c @@ -54,9 +54,9 @@ void lf_pinbox_init(LF_PINBOX *pinbox, lf_pinbox_free_func *free_func, pinbox->free_func_arg=free_func_arg; } -void lf_pinbox_end(LF_PINBOX *pinbox) +void lf_pinbox_destroy(LF_PINBOX *pinbox) { - lf_dynarray_end(&pinbox->pinstack); + lf_dynarray_destroy(&pinbox->pinstack); } LF_PINS *_lf_pinbox_get_pins(LF_PINBOX *pinbox) @@ -292,7 +292,7 @@ void lf_alloc_init(LF_ALLOCATOR *allocator, uint size) DBUG_ASSERT(size >= (int)sizeof(void *)); } -void lf_alloc_end(LF_ALLOCATOR *allocator) +void lf_alloc_destroy(LF_ALLOCATOR *allocator) { void *el=allocator->top; while (el) @@ -301,7 +301,7 @@ void lf_alloc_end(LF_ALLOCATOR *allocator) my_free(el, MYF(0)); el=tmp; } - lf_pinbox_end(&allocator->pinbox); + lf_pinbox_destroy(&allocator->pinbox); allocator->top=0; } -- cgit v1.2.1