diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-01-19 20:17:23 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-01-19 20:17:23 +0100 |
commit | 2254efbf5d34cffbb8b21e8ef3cec06786081a06 (patch) | |
tree | 58bc4973332ec9525a5aa3705d1e4021b3f1b659 /source3/lib/dbwrap_ctdb.c | |
parent | c570d6396f238cbe39af3a5de98157a2c608ec9b (diff) | |
parent | 288ce60748576a64efd5d3a3897fae1110379565 (diff) | |
download | samba-2254efbf5d34cffbb8b21e8ef3cec06786081a06.tar.gz samba-2254efbf5d34cffbb8b21e8ef3cec06786081a06.tar.bz2 samba-2254efbf5d34cffbb8b21e8ef3cec06786081a06.zip |
Merge branch 'v4-0-stable'
Diffstat (limited to 'source3/lib/dbwrap_ctdb.c')
-rw-r--r-- | source3/lib/dbwrap_ctdb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c index 38daa61b33..03667ff355 100644 --- a/source3/lib/dbwrap_ctdb.c +++ b/source3/lib/dbwrap_ctdb.c @@ -1158,6 +1158,13 @@ static int db_ctdb_get_seqnum(struct db_context *db) return tdb_get_seqnum(ctx->wtdb->tdb); } +static int db_ctdb_get_flags(struct db_context *db) +{ + struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, + struct db_ctdb_ctx); + return tdb_get_flags(ctx->wtdb->tdb); +} + struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, const char *name, int hash_size, int tdb_flags, @@ -1219,6 +1226,7 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, result->traverse = db_ctdb_traverse; result->traverse_read = db_ctdb_traverse_read; result->get_seqnum = db_ctdb_get_seqnum; + result->get_flags = db_ctdb_get_flags; result->transaction_start = db_ctdb_transaction_start; result->transaction_commit = db_ctdb_transaction_commit; result->transaction_cancel = db_ctdb_transaction_cancel; |