summaryrefslogtreecommitdiff
path: root/mysys/lf_alloc-pin.c
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2006-08-17 15:20:58 +0200
committerunknown <serg@janus.mylan>2006-08-17 15:20:58 +0200
commit74d050d000ff9db79e36931988386fe7988f8dd2 (patch)
treec1314972c00652cda1f4feaca6bee4aeaf330fb7 /mysys/lf_alloc-pin.c
parentd1a8a2c7345847fc750c2d36908913dedb052c9c (diff)
downloadmariadb-git-74d050d000ff9db79e36931988386fe7988f8dd2.tar.gz
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
Diffstat (limited to 'mysys/lf_alloc-pin.c')
-rw-r--r--mysys/lf_alloc-pin.c8
1 files changed, 4 insertions, 4 deletions
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;
}