diff options
-rw-r--r-- | NEWS | 17 | ||||
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/bucket.c | 4 | ||||
-rw-r--r-- | src/falloc.c | 2 | ||||
-rw-r--r-- | src/gdbmopen.c | 2 | ||||
-rw-r--r-- | src/gdbmsetopt.c | 2 | ||||
-rw-r--r-- | src/gdbmtool.c | 2 |
8 files changed, 21 insertions, 14 deletions
@@ -1,2 +1,2 @@ | |||
1 | GNU dbm NEWS -- history of user-visible changes. 2018-05-25 | 1 | GNU dbm NEWS -- history of user-visible changes. 2018-06-16 |
2 | Copyright (C) 1990-2018 Free Software Foundation, Inc. | 2 | Copyright (C) 1990-2018 Free Software Foundation, Inc. |
@@ -6,7 +6,14 @@ Please send gdbm bug reports to <bug-gdbm@gnu.org>. | |||
6 | 6 | ||
7 | Version 1.14.90 | 7 | Version 1.15 - 2018-06-15 |
8 | 8 | ||
9 | FIXME: BUMP VI_MAJOR | 9 | * Extensive database consistency checking |
10 | 10 | ||
11 | * Implement database consistency checks | 11 | GDBM tries to detect inconsistencies in input database files as |
12 | early as possible. When an inconcistency is detected, a helpful | ||
13 | diagnostics is returned and the database is marked as needing | ||
14 | recovery. From this moment on, any GDBM function trying to access | ||
15 | the database will immediately return error code (instead of | ||
16 | eventually segfaulting as previous versions did). In order to | ||
17 | reconstruct the database and return it to healthy state, the | ||
18 | gdbm_recover function should be used. | ||
12 | 19 | ||
@@ -35,3 +42,3 @@ e.g.: | |||
35 | Upon return from gdbm_recover, this member holds the number of keys | 42 | Upon return from gdbm_recover, this member holds the number of keys |
36 | that were not recovered, because the same key has already been stored | 43 | that has not been recovered, because the same key had already been stored |
37 | in the database. The actual number of stored keys is thus | 44 | in the database. The actual number of stored keys is thus |
diff --git a/configure.ac b/configure.ac index 48ad675..505ba09 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -18,4 +18,4 @@ | |||
18 | m4_define([_GDBM_VERSION_MAJOR], 1) | 18 | m4_define([_GDBM_VERSION_MAJOR], 1) |
19 | m4_define([_GDBM_VERSION_MINOR], 14) | 19 | m4_define([_GDBM_VERSION_MINOR], 15) |
20 | m4_define([_GDBM_VERSION_PATCH], 90) | 20 | dnl m4_define([_GDBM_VERSION_PATCH], 0) |
21 | 21 | ||
diff --git a/src/Makefile.am b/src/Makefile.am index 0d2ca53..2710bf0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -35,3 +35,3 @@ gram.h: gram.c | |||
35 | # The libraries | 35 | # The libraries |
36 | VI_CURRENT = 5 | 36 | VI_CURRENT = 6 |
37 | VI_REVISION = 0 | 37 | VI_REVISION = 0 |
diff --git a/src/bucket.c b/src/bucket.c index a3e8f4e..4b69bbe 100644 --- a/src/bucket.c +++ b/src/bucket.c | |||
@@ -31,3 +31,3 @@ _gdbm_new_bucket (GDBM_FILE dbf, hash_bucket *bucket, int bits) | |||
31 | int index; | 31 | int index; |
32 | 32 | ||
33 | /* Initialize the avail block. */ | 33 | /* Initialize the avail block. */ |
@@ -148,3 +148,3 @@ _gdbm_get_bucket (GDBM_FILE dbf, int dir_index) | |||
148 | && bucket->bucket_bits >= 0 | 148 | && bucket->bucket_bits >= 0 |
149 | && bucket->bucket_bits <= GDBM_HASH_BITS)) | 149 | && bucket->bucket_bits <= dbf->header->dir_bits)) |
150 | { | 150 | { |
diff --git a/src/falloc.c b/src/falloc.c index 2f21ebe..6571d9b 100644 --- a/src/falloc.c +++ b/src/falloc.c | |||
@@ -294,3 +294,3 @@ push_avail_block (GDBM_FILE dbf) | |||
294 | /* Split the header block. */ | 294 | /* Split the header block. */ |
295 | temp = malloc (av_size); | 295 | temp = calloc (1, av_size); |
296 | if (temp == NULL) | 296 | if (temp == NULL) |
diff --git a/src/gdbmopen.c b/src/gdbmopen.c index 03cc4f4..677f1cf 100644 --- a/src/gdbmopen.c +++ b/src/gdbmopen.c | |||
@@ -156,3 +156,3 @@ validate_header (gdbm_file_header const *hdr, struct stat const *st) | |||
156 | 156 | ||
157 | if (!(hdr->bucket_size > 0 && hdr->bucket_size > sizeof(hash_bucket))) | 157 | if (!(hdr->bucket_size > sizeof(hash_bucket))) |
158 | return GDBM_BAD_HEADER; | 158 | return GDBM_BAD_HEADER; |
diff --git a/src/gdbmsetopt.c b/src/gdbmsetopt.c index f9face0..865f5a5 100644 --- a/src/gdbmsetopt.c +++ b/src/gdbmsetopt.c | |||
@@ -56,3 +56,2 @@ setopt_gdbm_setcachesize (GDBM_FILE dbf, void *optval, int optlen) | |||
56 | 56 | ||
57 | /* Optval will point to the new size of the cache. */ | ||
58 | if (dbf->bucket_cache != NULL) | 57 | if (dbf->bucket_cache != NULL) |
@@ -63,2 +62,3 @@ setopt_gdbm_setcachesize (GDBM_FILE dbf, void *optval, int optlen) | |||
63 | 62 | ||
63 | /* Optval will point to the new size of the cache. */ | ||
64 | if (get_size (optval, optlen, &sz)) | 64 | if (get_size (optval, optlen, &sz)) |
diff --git a/src/gdbmtool.c b/src/gdbmtool.c index 6d56578..d0b2694 100644 --- a/src/gdbmtool.c +++ b/src/gdbmtool.c | |||
@@ -921,3 +921,3 @@ list_handler (struct handler_param *param) | |||
921 | { | 921 | { |
922 | terror (_("cannot fetch data; the key was:")); | 922 | terror (_("%s; the key was:"), gdbm_db_strerror (gdbm_file)); |
923 | datum_format (stderr, &key, dsdef[DS_KEY]); | 923 | datum_format (stderr, &key, dsdef[DS_KEY]); |