From 5e920f2a232ea0bce366895b0b789b1362e88180 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 27 Oct 2009 10:54:16 +1100 Subject: s4:dsdb Rework partitions module for better tracing This means we need to create a fake 'module' which only has a 'next' pointer, so that we can now ldb_next_request() (which incorporates tracing). The remainaing stub of partition_request() is retained so that we can indicate which partition an operation is destined for. Similar tracing is added to the transaction handlers. Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/partition.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules/partition.h') diff --git a/source4/dsdb/samdb/ldb_modules/partition.h b/source4/dsdb/samdb/ldb_modules/partition.h index dda0b86515..81c98f4767 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.h +++ b/source4/dsdb/samdb/ldb_modules/partition.h @@ -48,17 +48,4 @@ struct partition_private_data { uint32_t in_transaction; }; -#define PARTITION_FIND_OP_NOERROR(module, op) do { \ - while (module && module->ops->op == NULL) module = module->next; \ -} while (0) - -#define PARTITION_FIND_OP(module, op) do { \ - PARTITION_FIND_OP_NOERROR(module, op); \ - if (module == NULL) { \ - ldb_asprintf_errstring(ldb_module_get_ctx(module), \ - "Unable to find backend operation for " #op ); \ - return LDB_ERR_OPERATIONS_ERROR; \ - } \ -} while (0) - #include "dsdb/samdb/ldb_modules/partition_proto.h" -- cgit