aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmtool.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-03-21 13:34:16 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-03-21 13:52:49 +0200
commitd3e279579685be6732b3f7980f0b6a66f7e2d394 (patch)
tree41bc61c15b5b70c6cdda1467ab9a66fe0b8e4d8d /src/gdbmtool.c
parent35d78dd3c6f96904175a8d152828e4616e7fe6c7 (diff)
downloadgdbm-newcache.tar.gz
gdbm-newcache.tar.bz2
Enable automatic cache size by default.newcache
This provides for the optimal performance. Additional GDBM_XVERIFY flag can be used when opening the database to request extended database verification (entire avail stack will be checked). * src/bucket.c (cache_lookup): Handle cache_size == GDBM_CACHE_AUTO. (_gdbm_cache_init): Likewise. * src/gdbm.h.in (GDBM_XVERIFY): New flag to gdbm_open. (GDBM_CACHE_AUTO): New constant. Define error constants within enum. Fix definition of GDBM_BAD_HASH_ENTRY. * src/gdbmclose.c: Fix misleading comment. * src/gdbmconst.h: Define DEFAULT_CACHESIZE to be GDBM_CACHE_AUTO. * src/gdbmopen.c (gdbm_fd_open): Call gdbm_avail_verify if the GDBM_XVERIFY flag is set. * doc/gdbm.texi: Update. * doc/gdbm.3: Update.
Diffstat (limited to 'src/gdbmtool.c')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.