summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-22 15:07:43 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-22 07:35:17 +0200
commit1acf548eb75c9641e4e2c07167b42bc4380f9158 (patch)
tree818c0c6fcd266e754c678381ae0a43a84d307ed4 /source3/lib
parentfc9b2987611d7535b92288b26b09db19a0e2d78e (diff)
downloadsamba-1acf548eb75c9641e4e2c07167b42bc4380f9158.tar.gz
samba-1acf548eb75c9641e4e2c07167b42bc4380f9158.tar.bz2
samba-1acf548eb75c9641e4e2c07167b42bc4380f9158.zip
dbwrap: remove get_flags().
The flags returned were TDB-specific: this was only used for detecting the endianness of obsolete databases (the conversion code was put in in 2003, with reference to Samba 2.3). It's easier to remove it than to translate the NTDB flags to TDB flags, and it's a really weird thing to ask for anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 2b75e8fe05..7df025f9bb 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1486,13 +1486,6 @@ 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);
-}
-
static void db_ctdb_id(struct db_context *db, const uint8_t **id,
size_t *idlen)
{
@@ -1608,7 +1601,6 @@ 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;