]> git.ozlabs.org Git - ccan/commit - ccan/tdb2/free.c
tdb2: TDB_ATTRIBUTE_STATS access via tdb_get_attribute.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Apr 2011 13:51:32 +0000 (23:21 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Apr 2011 13:51:32 +0000 (23:21 +0930)
commit8cca0397ef6f6017b13ce9ab4999bf3d92a2dee5
tree915105f41dac2817374048a9ab41eedac3d27b6c
parent66ead2bcb732aa53bde5092b34c16d780df779ea
tdb2: TDB_ATTRIBUTE_STATS access via tdb_get_attribute.

Now we have tdb_get_attribute, it makes sense to make that the method
of accessing statistics.  That way they are always available, and it's
probably cheaper doing the direct increment than even the unlikely()
branch.
12 files changed:
ccan/tdb2/free.c
ccan/tdb2/hash.c
ccan/tdb2/io.c
ccan/tdb2/lock.c
ccan/tdb2/open.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/failtest_helper.h
ccan/tdb2/test/run-91-get-stats.c [new file with mode: 0644]
ccan/tdb2/tools/speed.c
ccan/tdb2/transaction.c