summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-01-11 17:04:39 +0100
committerStefan Metzmacher <metze@samba.org>2013-01-11 17:10:48 +0100
commitaea49ed37afe49d12fbb6303f6ea5e7f984b2fda (patch)
treeb3fdbd2f678ffe2924acc7667b5536d13417180b /source3/lib/dbwrap
parentedbc26bca84ee77b5a9571ba8dc9416c0db25906 (diff)
downloadsamba-aea49ed37afe49d12fbb6303f6ea5e7f984b2fda.tar.gz
samba-aea49ed37afe49d12fbb6303f6ea5e7f984b2fda.tar.bz2
samba-aea49ed37afe49d12fbb6303f6ea5e7f984b2fda.zip
dbwrap: Use INCOMPATIBLE_HASH for dbwrap_watchers.tdb
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/dbwrap')
-rw-r--r--source3/lib/dbwrap/dbwrap_watch.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c
index d7392a3235..d8f1b74a42 100644
--- a/source3/lib/dbwrap/dbwrap_watch.c
+++ b/source3/lib/dbwrap/dbwrap_watch.c
@@ -31,9 +31,10 @@ static struct db_context *dbwrap_record_watchers_db(void)
static struct db_context *watchers_db;
if (watchers_db == NULL) {
- watchers_db = db_open(NULL, lock_path("dbwrap_watchers.tdb"),
- 0, TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT,
- 0600, DBWRAP_LOCK_ORDER_3);
+ watchers_db = db_open(
+ NULL, lock_path("dbwrap_watchers.tdb"), 0,
+ TDB_CLEAR_IF_FIRST | TDB_INCOMPATIBLE_HASH,
+ O_RDWR|O_CREAT, 0600, DBWRAP_LOCK_ORDER_3);
}
return watchers_db;
}