Eliminate exclusive and rdonly BDB configuration options
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Apr 2010 11:39:07 +0000 (14:39 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Apr 2010 11:39:07 +0000 (14:39 +0300)
- we never want DB_CREATE to cause failure - let BDB create the
  db if it needs to, otherwise DB_CREATE doesn't do anything
- rdonly is decided elsewhere, not in bleeping configuration

lib/backend/dbconfig.c
macros.in

index c16d9fc..63c2fe8 100644 (file)
@@ -49,12 +49,8 @@ static const struct poptOption rdbOptions[] = {
  { "private",  0,POPT_BIT_SET, &staticdbi.dbi_eflags, DB_PRIVATE,
        NULL, NULL },
 
- { "excl",     0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_EXCL,
-       NULL, NULL },
  { "nommap",   0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_NOMMAP,
        NULL, NULL },
- { "rdonly",   0,POPT_BIT_SET, &staticdbi.dbi_oflags, DB_RDONLY,
-       NULL, NULL },
  { "fcntl_locking",0,POPT_BIT_SET,     &staticdbi.dbi_oflags, DB_FCNTL_LOCKING,
        NULL, NULL },
 
index acc4004..b6fe25b 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -554,9 +554,7 @@ print (t)\
 #---------------------- DB->open parameters and tunable values:
 #   pagesize=512 +++   DB->set_pagesize
 #---------------------- DB->open bits:
-#   excl       ???     DB_EXCL
 #   nommap     ???     DB_NOMMAP
-#   rdonly             DB_RDONLY
 #---------------------- DB->open types:
 #   btree              DB_BTREE
 #   hash               DB_HASH