diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 15:07:43 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:17 +0200 |
commit | 1acf548eb75c9641e4e2c07167b42bc4380f9158 (patch) | |
tree | 818c0c6fcd266e754c678381ae0a43a84d307ed4 /lib/dbwrap/dbwrap_cache.c | |
parent | fc9b2987611d7535b92288b26b09db19a0e2d78e (diff) | |
download | samba-1acf548eb75c9641e4e2c07167b42bc4380f9158.tar.gz |
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 'lib/dbwrap/dbwrap_cache.c')
-rw-r--r-- | lib/dbwrap/dbwrap_cache.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/dbwrap/dbwrap_cache.c b/lib/dbwrap/dbwrap_cache.c index 865fcff7a1d..4bfa6340af6 100644 --- a/lib/dbwrap/dbwrap_cache.c +++ b/lib/dbwrap/dbwrap_cache.c @@ -131,13 +131,6 @@ static int dbwrap_cache_get_seqnum(struct db_context *db) return dbwrap_get_seqnum(ctx->backing); } -static int dbwrap_cache_get_flags(struct db_context *db) -{ - struct db_cache_ctx *ctx = talloc_get_type_abort( - db->private_data, struct db_cache_ctx); - return dbwrap_get_flags(ctx->backing); -} - static int dbwrap_cache_transaction_start(struct db_context *db) { struct db_cache_ctx *ctx = talloc_get_type_abort( @@ -210,7 +203,6 @@ struct db_context *db_open_cache(TALLOC_CTX *mem_ctx, db->traverse = dbwrap_cache_traverse; db->traverse_read = dbwrap_cache_traverse_read; db->get_seqnum = dbwrap_cache_get_seqnum; - db->get_flags = dbwrap_cache_get_flags; db->transaction_start = dbwrap_cache_transaction_start; db->transaction_commit = dbwrap_cache_transaction_commit; db->transaction_cancel = dbwrap_cache_transaction_cancel; |