summaryrefslogtreecommitdiffstats
path: root/src/plug-sch.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2012-06-13 15:06:14 -0400
committerNalin Dahyabhai <nalin@dahyabhai.net>2012-06-13 15:06:14 -0400
commit78220857bd3c420fd2b09b1a83eaae23ec2e0c33 (patch)
tree89374acc9a2fda18f86e977721bdf7594d6336ad /src/plug-sch.c
parentc18ffce4be91de84a3c5e56895336829bdc16846 (diff)
downloadslapi-nis-78220857bd3c420fd2b09b1a83eaae23ec2e0c33.tar.gz
slapi-nis-78220857bd3c420fd2b09b1a83eaae23ec2e0c33.tar.xz
slapi-nis-78220857bd3c420fd2b09b1a83eaae23ec2e0c33.zip
drop support for directory server transactions
Transaction support the way we added it is an all-or-nothing proposition for a server installation, which turned out to be problematic, so 389 is going to pursue another strategy for that. The new way requires that we not register as a betxn plugin, ever.
Diffstat (limited to 'src/plug-sch.c')
-rw-r--r--src/plug-sch.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/plug-sch.c b/src/plug-sch.c
index c30af19..44b0918 100644
--- a/src/plug-sch.c
+++ b/src/plug-sch.c
@@ -60,7 +60,6 @@
#define PLUGIN_PREOP_ID PLUGIN_ID "-preop"
#define PLUGIN_POSTOP_ID PLUGIN_ID "-postop"
#define PLUGIN_INTERNAL_POSTOP_ID PLUGIN_ID "-internal-postop"
-#define PLUGIN_BE_TXN_POSTOP_ID PLUGIN_ID "-be-txn-postop"
/* the module initialization function */
static Slapi_PluginDesc
@@ -166,22 +165,6 @@ schema_compat_plugin_init_internal_postop(Slapi_PBlock *pb)
}
return 0;
}
-#ifdef USE_SLAPI_BE_TXNS
-static int
-schema_compat_plugin_init_be_txn_postop(Slapi_PBlock *pb)
-{
- slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, SLAPI_PLUGIN_VERSION_03);
- slapi_pblock_set(pb, SLAPI_PLUGIN_DESCRIPTION, &plugin_description);
- slapi_pblock_set(pb, SLAPI_PLUGIN_PRIVATE, global_plugin_state);
- if (backend_init_be_txn_postop(pb, global_plugin_state) == -1) {
- slapi_log_error(SLAPI_LOG_PLUGIN,
- global_plugin_state->plugin_desc->spd_id,
- "error registering be-txn postop hooks\n");
- return -1;
- }
- return 0;
-}
-#endif
int
schema_compat_plugin_init(Slapi_PBlock *pb)
{
@@ -229,17 +212,6 @@ schema_compat_plugin_init(Slapi_PBlock *pb)
"error registering internal postoperation plugin\n");
return -1;
}
-#ifdef USE_SLAPI_BE_TXNS
- if (slapi_register_plugin("betxnpostoperation", TRUE,
- "schema_compat_plugin_init_be_txn_postop",
- schema_compat_plugin_init_be_txn_postop,
- PLUGIN_BE_TXN_POSTOP_ID, NULL,
- state->plugin_identity) != 0) {
- slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id,
- "error registering be-txn postoperation plugin\n");
- return -1;
- }
-#endif
slapi_log_error(SLAPI_LOG_PLUGIN, state->plugin_desc->spd_id,
"registered plugin hooks\n");
global_plugin_state = NULL;