summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-01-27 16:38:25 +0100
committerStefan Metzmacher <metze@samba.org>2014-02-07 16:06:07 +0100
commit7e766a0a8ade1f018015684c22bda82595a33d38 (patch)
tree4509a8c1ad30a5f509f6cbbad094e7d975298844 /lib/dbwrap
parente4fbaadb5cadaa584f455d624eafe706703cda1a (diff)
downloadsamba-7e766a0a8ade1f018015684c22bda82595a33d38.tar.gz
dbwrap: add dbwrap_flags argument to dbwrap_local_open()
To be consistent with db_open() and prepare for future possible extensions. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap.h3
-rw-r--r--lib/dbwrap/dbwrap_local_open.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/dbwrap/dbwrap.h b/lib/dbwrap/dbwrap.h
index 02b44052dd7..1949d5f8e5e 100644
--- a/lib/dbwrap/dbwrap.h
+++ b/lib/dbwrap/dbwrap.h
@@ -160,6 +160,7 @@ struct db_context *dbwrap_local_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_H__ */
diff --git a/lib/dbwrap/dbwrap_local_open.c b/lib/dbwrap/dbwrap_local_open.c
index e54ed979f35..a6f494e313d 100644
--- a/lib/dbwrap/dbwrap_local_open.c
+++ b/lib/dbwrap/dbwrap_local_open.c
@@ -160,7 +160,8 @@ struct db_context *dbwrap_local_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)
{
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
const char *ntdbname, *tdbname;