diff options
author | Michael Adam <obnox@samba.org> | 2014-01-27 14:49:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-02-07 16:06:06 +0100 |
commit | cf0cb0add9ed47b8974272237fee0e1a4ba7bf68 (patch) | |
tree | e655a5a44b8d134767b6a58a281aa040317a664c /source3/utils/net_idmap.c | |
parent | 229dcfd3501e4743d5d9aea5c9f7a97d7612a499 (diff) | |
download | samba-cf0cb0add9ed47b8974272237fee0e1a4ba7bf68.tar.gz |
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>
Diffstat (limited to 'source3/utils/net_idmap.c')
-rw-r--r-- | source3/utils/net_idmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index 1095f143d56..ec2b05087ee 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -206,7 +206,7 @@ static bool net_idmap_opendb_autorid(TALLOC_CTX *mem_ctx, if (readonly) { *db = db_open(mem_ctx, dbfile, 0, TDB_DEFAULT, O_RDONLY, 0, - DBWRAP_LOCK_ORDER_1); + DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); if (*db == NULL) { d_fprintf(stderr, _("Could not open autorid db (%s): %s\n"), @@ -261,7 +261,7 @@ static int net_idmap_dump(struct net_context *c, int argc, const char **argv) d_fprintf(stderr, _("dumping id mapping from %s\n"), dbfile); db = db_open(mem_ctx, dbfile, 0, TDB_DEFAULT, O_RDONLY, 0, - DBWRAP_LOCK_ORDER_1); + DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); if (db == NULL) { d_fprintf(stderr, _("Could not open idmap db (%s): %s\n"), dbfile, strerror(errno)); @@ -387,7 +387,7 @@ static int net_idmap_restore(struct net_context *c, int argc, const char **argv) } db = db_open(mem_ctx, dbfile, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0644, - DBWRAP_LOCK_ORDER_1); + DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); if (db == NULL) { d_fprintf(stderr, _("Could not open idmap db (%s): %s\n"), dbfile, strerror(errno)); @@ -598,7 +598,7 @@ static int net_idmap_delete_mapping(struct net_context *c, int argc, d_fprintf(stderr, _("deleting id mapping from %s\n"), dbfile); db = db_open(mem_ctx, dbfile, 0, TDB_DEFAULT, O_RDWR, 0, - DBWRAP_LOCK_ORDER_1); + DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); if (db == NULL) { d_fprintf(stderr, _("Could not open idmap db (%s): %s\n"), dbfile, strerror(errno)); |