diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 11:35:24 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-05-24 11:35:24 +0300 |
commit | 371bb85fe378ffd0ed6ddc81985d450cef5835a3 (patch) | |
tree | 6ab2d142b7aa1f9b29ec50b891c8293774964209 /NEWS | |
parent | f82d0b213fd2cdce80dc891906fba8d589115664 (diff) | |
download | gdbm-371bb85fe378ffd0ed6ddc81985d450cef5835a3.tar.gz gdbm-371bb85fe378ffd0ed6ddc81985d450cef5835a3.tar.bz2 |
More error checking; improve gdbm_recover
* Makefile.am (set-dist-date): New rule
(dist-hook): Catch FIXMEs in NEWS.
* NEWS: Updated.
* src/findkey.c (gdbm_bucket_element_valid_p): New function.
(_gdbm_read_entry): Validate the retrieved bucket element.
* src/gdbm.h.in (gdbm_recovery): New member: duplicate_keys.
(GDBM_BAD_HASH_TABLE): New error code.
* src/gdbmdefs.h (TYPE_WIDTH,SIGNED_TYPE_MAXIMUM)
(OFF_T_MAX): New defines.
(off_t_sum_ok): New function.
(gdbm_bucket_element_valid_p): New prototype.
* src/gdbmerrno.c: Support for GDBM_BAD_HASH_TABLE code.
* src/gdbmtool.c (recover_handler): Fix argument counting.
New argument 'summary' prints statistics summary at the end
of the run.
(export_handler,import_handler): Fix argument counting.
* src/mmap.c (SUM_FILE_SIZE): Rewrite as inlined function.
Add error checking.
(_gdbm_mapped_remap): More error checking.
* src/recover.c (run_recovery): Don't bail out on GDBM_CANNOT_REPLACE.
(gdbm_recover): Initialize duplicate_keys
* src/systems.h: Include limits.h
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -1,20 +1,49 @@ -GNU dbm NEWS -- history of user-visible changes. 2018-05-19 +GNU dbm NEWS -- history of user-visible changes. 2018-05-24 Copyright (C) 1990-2018 Free Software Foundation, Inc. See the end of file for copying conditions. Please send gdbm bug reports to <bug-gdbm@gnu.org>. Version 1.14.90 +FIXME: BUMP VI_MAJOR + * Implement database consistency checks * Improved error checking * Removed gdbm-1.8.3 compatibility layer +* Commands can be given to gdbmtool in the command line + +The syntax is: + + gdbmtool DBNAME COMMAND [ARGS...] + +Multiple commands are separated by semicolon (take care to escape it), +e.g.: + + gdbmtool t.db count\; avail + +* Fixed data conversion bugs in storing structured keys or content + +* New member in the gdbm_recovery structure: duplicate_keys. + +Upon return from gdbm_recover, this member holds the number of keys +that were not recovered, because the same key has already been stored +in the database. The actual number of stored keys is thus +recovered_keys - duplicate_keys. + +* New error codes. + + GDBM_BAD_BUCKET "Malformed bucket header" + GDBM_BAD_HEADER "Malformed database file header" + GDBM_BAD_AVAIL "Malformed avail_block" + GDBM_BAD_HASH_TABLE "Malformed hash table" + Version 1.14.1 - 2018-01-03 * Increment soname current version number. |