mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
dbwrap: add a dbwrap_flags argument to db_open()
This is in preparation to support handing flags to backends, in particular activating read only record support for ctdb databases. For a start, this does nothing but adding the parameter, and all databases use DBWRAP_FLAG_NONE. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
229dcfd350
commit
cf0cb0add9
@ -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) ));
|
||||
|
Reference in New Issue
Block a user