pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/gdbm gdbm: update to 1.21.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d31b8ccded57
branches:  trunk
changeset: 458277:d31b8ccded57
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Sep 12 09:12:34 2021 +0000

description:
gdbm: update to 1.21.

Version 1.21, 2021-09-02

* Crash tolerance

By default it is possible for an abrupt crash (e.g., power failure,
OS kernel panic, or application process crash) to corrupt the gdbm
database file.  A new Linux-only mechanism enables applications to
recover the database state corresponding to the most recent
successful gdbm_sync() call before the crash.  See the chapter 17
"Crash Tolerance" in the GDBM manual.

* New database file format: numsync

The new "numsync" database format is designed to better support
crash tolerance.  To create a database in numsync format, the gdbm_open
(or gdbm_fd_open) function must be given the GDBM_NEWDB|GDBM_NUMSYNC
flags.  The GDBM_NUMSYNC flag also takes effect when used together
with GDBM_WRCREAT, provided that the new file is created.

New function gdbm_convert() is provided for converting the databases
from standard GDBM format to numsync and vice versa.

The gdbmtool tool can also be used for converting databases between
these two formats.

* Changes in gdbmtool

** Fix string output in non-ASCII encodings

Printable multi-byte sequences are correctly represented on output.
This also fixes octal representation of unprintable characters.

** The filename variable

This variable supplies the name of database file for use in "open"
command, if the latter is called without arguments.  If "open" is
called with the file name argument, the "filename" variable is
initialized to this value.

** The fd variable

If set, its value must be an open file descriptor referring to a
GDBM database file.  The "open" command will use gdbm_fd_open
function to use this file.   Upon closing the database, this
descriptor will be closed and the variable will be unset.

The file descriptor to use can also be supplied using the
-d (--db-descriptor) command line option.

** The format variable

Defines the format in which new databases will be created.  Allowed
values are: "standard" (default) and "numsync".

** New commands: upgrade and downgrade

The "upgrade" command converts current database to the numsync
(extended) format.  The "downgrade" command converts current database
to the standard format.

** New command: snapshot

The "snapshot" command is part of the new crash tolerance support.
Given the names of two snapshot files, it analyzes them and selects
the one to be used for database recovery.  See the GDBM manual,
section 17.5 "Manual crash recovery" for a detailed discussion of its
use.

diffstat:

 databases/gdbm/Makefile.common |   4 ++--
 databases/gdbm/distinfo        |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 8ea2caf66bc9 -r d31b8ccded57 databases/gdbm/Makefile.common
--- a/databases/gdbm/Makefile.common    Sun Sep 12 09:10:52 2021 +0000
+++ b/databases/gdbm/Makefile.common    Sun Sep 12 09:12:34 2021 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.10 2021/06/28 07:51:44 wiz Exp $
+# $NetBSD: Makefile.common,v 1.11 2021/09/12 09:12:34 wiz Exp $
 #
 # used by databases/gdbm/Makefile
 # used by databases/gdbm_compat/Makefile
 
-DISTNAME=      gdbm-1.20
+DISTNAME=      gdbm-1.21
 CATEGORIES=    databases
 MASTER_SITES=  ${MASTER_SITE_GNU:=gdbm/}
 
diff -r 8ea2caf66bc9 -r d31b8ccded57 databases/gdbm/distinfo
--- a/databases/gdbm/distinfo   Sun Sep 12 09:10:52 2021 +0000
+++ b/databases/gdbm/distinfo   Sun Sep 12 09:12:34 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.17 2021/06/28 07:51:44 wiz Exp $
+$NetBSD: distinfo,v 1.18 2021/09/12 09:12:34 wiz Exp $
 
-SHA1 (gdbm-1.20.tar.gz) = f3200c9c4e5c7de4978f838bbabeaa7c5b857bd7
-RMD160 (gdbm-1.20.tar.gz) = 6fab4bf0948c178ef23905bbb10c3655513961da
-SHA512 (gdbm-1.20.tar.gz) = 5f2fbd4318259e5b879ea2bff09e22defbb4e566ebbe11c44ac5b5369fd00745d7ed9f72ec1206153027eba245c4ee4a515a8ec6d67f84ec477483e72753590b
-Size (gdbm-1.20.tar.gz) = 987628 bytes
+SHA1 (gdbm-1.21.tar.gz) = f6eec6113f04a4b5fd2c1cfead10e7d65c8f3d89
+RMD160 (gdbm-1.21.tar.gz) = 0a39c460bc85e271cac4d7fe08f6b38bf9426e6a
+SHA512 (gdbm-1.21.tar.gz) = b2a31802d1af9f97b24d3dd01cb048bab4a8e748297f1b70851c0342400dde4281242b7f80bd92a36035e22398d240d131b550ab444ee838a077522a6921fa43
+Size (gdbm-1.21.tar.gz) = 1005982 bytes
 SHA1 (patch-src_Makefile.in) = 52b47f3dcd381143d1cdae40f1972bd989dcce1f



Home | Main Index | Thread Index | Old Index