diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_open.c | 3 | ||||
-rw-r--r-- | source3/lib/dbwrap/dbwrap_open.h | 3 | ||||
-rw-r--r-- | source3/lib/dbwrap/dbwrap_watch.c | 3 | ||||
-rw-r--r-- | source3/lib/g_lock.c | 3 | ||||
-rw-r--r-- | source3/lib/serverid.c | 3 | ||||
-rw-r--r-- | source3/lib/sharesec.c | 2 |
6 files changed, 11 insertions, 6 deletions
diff --git a/source3/lib/dbwrap/dbwrap_open.c b/source3/lib/dbwrap/dbwrap_open.c index 515b4bff1d1..6c9280cedbb 100644 --- a/source3/lib/dbwrap/dbwrap_open.c +++ b/source3/lib/dbwrap/dbwrap_open.c @@ -60,7 +60,8 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, - enum dbwrap_lock_order lock_order) + enum dbwrap_lock_order lock_order, + uint64_t dbwrap_flags) { struct db_context *result = NULL; #ifdef CLUSTER_SUPPORT diff --git a/source3/lib/dbwrap/dbwrap_open.h b/source3/lib/dbwrap/dbwrap_open.h index 51c7dfd2353..d14794ea17c 100644 --- a/source3/lib/dbwrap/dbwrap_open.h +++ b/source3/lib/dbwrap/dbwrap_open.h @@ -39,6 +39,7 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, - enum dbwrap_lock_order lock_order); + enum dbwrap_lock_order lock_order, + uint64_t dbwrap_flags); #endif /* __DBWRAP_OPEN_H__ */ diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index b586b661a34..ba4381e045b 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -33,7 +33,8 @@ static struct db_context *dbwrap_record_watchers_db(void) 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); + O_RDWR|O_CREAT, 0600, DBWRAP_LOCK_ORDER_3, + DBWRAP_FLAG_NONE); } return watchers_db; } diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index 8c7a6c203b2..6813f0641f2 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -61,7 +61,8 @@ struct g_lock_ctx *g_lock_ctx_init(TALLOC_CTX *mem_ctx, result->db = db_open(result, lock_path("g_lock.tdb"), 0, TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, 0600, - DBWRAP_LOCK_ORDER_2); + DBWRAP_LOCK_ORDER_2, + DBWRAP_FLAG_NONE); if (result->db == NULL) { DEBUG(1, ("g_lock_init: Could not open g_lock.tdb\n")); TALLOC_FREE(result); diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index cb495205640..42598879479 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -77,7 +77,8 @@ static struct db_context *serverid_db(void) } db = db_open(NULL, lock_path("serverid.tdb"), 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, - O_RDWR|O_CREAT, 0644, DBWRAP_LOCK_ORDER_2); + O_RDWR|O_CREAT, 0644, DBWRAP_LOCK_ORDER_2, + DBWRAP_FLAG_NONE); return db; } diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index c7a8e51c05a..095c851825e 100644 --- a/source3/lib/sharesec.c +++ b/source3/lib/sharesec.c @@ -149,7 +149,7 @@ bool share_info_db_init(void) share_db = db_open(NULL, state_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600, - DBWRAP_LOCK_ORDER_1); + DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); if (share_db == NULL) { DEBUG(0,("Failed to open share info database %s (%s)\n", state_path("share_info.tdb"), strerror(errno) )); |