summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/partition.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-10-27 10:54:16 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-27 11:32:18 +1100
commit5e920f2a232ea0bce366895b0b789b1362e88180 (patch)
tree199f8144cca3ede42a00fc0baf44c4178ae9b55d /source4/dsdb/samdb/ldb_modules/partition.h
parent3c6c230b2d5c8a2632163a5f11d9e3f1f3db1639 (diff)
downloadsamba-5e920f2a232ea0bce366895b0b789b1362e88180.tar.gz
samba-5e920f2a232ea0bce366895b0b789b1362e88180.tar.bz2
samba-5e920f2a232ea0bce366895b0b789b1362e88180.zip
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
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/partition.h')
-rw-r--r--source4/dsdb/samdb/ldb_modules/partition.h13
1 files changed, 0 insertions, 13 deletions
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"