summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-06 09:03:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:37:07 -0500
commitf29ea516f99a250765c8a718d7212577167f7931 (patch)
tree2e5e1f7528846db5788f85588d65f497ef3fd8d8 /source4
parent3137e4f2fe036824984352edf618a8eddde17c51 (diff)
downloadsamba-f29ea516f99a250765c8a718d7212577167f7931.tar.gz
samba-f29ea516f99a250765c8a718d7212577167f7931.tar.bz2
samba-f29ea516f99a250765c8a718d7212577167f7931.zip
r20581: - the ldb modules have explicit hooks for extended operations
so call them - reorder the request operations first all with explixit hooks metze (This used to be commit aababcbb05ad476507bba35723eaef01d18b4d4e)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb.c4
-rw-r--r--source4/lib/ldb/include/ldb.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index 9b4386547c..28fe34c767 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -533,6 +533,10 @@ int ldb_request(struct ldb_context *ldb, struct ldb_request *req)
FIRST_OP(ldb, rename);
ret = module->ops->rename(module, req);
break;
+ case LDB_EXTENDED:
+ FIRST_OP(ldb, extended);
+ ret = module->ops->extended(module, req);
+ break;
case LDB_SEQUENCE_NUMBER:
FIRST_OP(ldb, sequence_number);
ret = module->ops->sequence_number(module, req);
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 4f8ee1f941..8a31720eea 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -651,9 +651,9 @@ enum ldb_request_type {
LDB_DELETE,
LDB_RENAME,
LDB_EXTENDED,
+ LDB_SEQUENCE_NUMBER,
LDB_REQ_REGISTER_CONTROL,
- LDB_REQ_REGISTER_PARTITION,
- LDB_SEQUENCE_NUMBER
+ LDB_REQ_REGISTER_PARTITION
};
enum ldb_reply_type {