summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-10-18 19:51:19 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-10-18 19:51:19 +0300
commitbcee56a8b5de38d09b02b9340c5762ef0fc40d5a (patch)
tree843a7fc8371668f9200059e1627b6ab916df228a
parent83b2a769dedfb858f6de0c78e732b64bf896cb2f (diff)
downloadgdbm-bcee56a8b5de38d09b02b9340c5762ef0fc40d5a.tar.gz
gdbm_recover does not disable crash tolerance
* src/recover.c (_gdbm_finish_transfer): Remove call to _gdbmsync_done. * doc/gdbm.texi: Reflect the changes.
-rw-r--r--doc/gdbm.texi6
-rw-r--r--src/recover.c2
2 files changed, 0 insertions, 8 deletions
diff --git a/doc/gdbm.texi b/doc/gdbm.texi
index ce038ed..886f2ee 100644
--- a/doc/gdbm.texi
+++ b/doc/gdbm.texi
@@ -913,12 +913,6 @@ correct information about the new file. If an error is detected, the return
value is negative. The value zero is returned after a successful
reorganization.
-@emph{Notice}, that calling this function disables crash tolerance
-(@pxref{Crash Tolerance}), reverting the effect of the recent
-@code{gdbm_failure_atomic} call. You will have to call
-@code{gdbm_failure_atomic} again after @code{gdbm_reorganize} returns
-successfully. This will be fixed in future releases.
-
@node Sync
@chapter Database Synchronization
@cindex database synchronization
diff --git a/src/recover.c b/src/recover.c
index 76a372c..af775ad 100644
--- a/src/recover.c
+++ b/src/recover.c
@@ -105,8 +105,6 @@ _gdbm_finish_transfer (GDBM_FILE dbf, GDBM_FILE new_dbf,
return -1;
}
- _gdbmsync_done (dbf);
-
#if HAVE_MMAP
_gdbm_mapped_unmap (dbf);
#endif