aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmsetopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmsetopt.c')
-rw-r--r--src/gdbmsetopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gdbmsetopt.c b/src/gdbmsetopt.c
index e372a92..47e01ad 100644
--- a/src/gdbmsetopt.c
+++ b/src/gdbmsetopt.c
@@ -57,6 +57,9 @@ gdbm_setopt (GDBM_FILE dbf, int optflag, void *optval, int optlen)
int n;
size_t sz;
+ /* Return immediately if the database needs recovery */
+ GDBM_ASSERT_CONSISTENCY (dbf, -1);
+
switch (optflag)
{
/* Cache size: */

Return to:

Send suggestions and report system problems to the System administrator.