From 0caae8aae062dc72f01dc9f0420cb05e85c3eb83 Mon Sep 17 00:00:00 2001 From: Ludwig Krispenz Date: Sep 12 2019 14:42:46 +0000 Subject: Ticket 50593 Investigate URP handling on standalone instance Bug: If the MMR plugin is enabled (on by default) even if no replica was configured the MMR plugins were called and eventually tried to generate cenotaphs for modrdn ops- Fix: Check early if the operation affects a backend without replication and return --- diff --git a/ldap/servers/plugins/replication/repl5_plugins.c b/ldap/servers/plugins/replication/repl5_plugins.c index abb3e68..e6b2fdb 100644 --- a/ldap/servers/plugins/replication/repl5_plugins.c +++ b/ldap/servers/plugins/replication/repl5_plugins.c @@ -575,6 +575,10 @@ multimaster_mmr_preop (Slapi_PBlock *pb, int flags) { int rc= SLAPI_PLUGIN_SUCCESS; + if (!is_mmr_replica(pb)) { + return rc; + } + switch (flags) { case SLAPI_PLUGIN_BE_PRE_ADD_FN: @@ -598,6 +602,10 @@ multimaster_mmr_postop (Slapi_PBlock *pb, int flags) { int rc= SLAPI_PLUGIN_SUCCESS; + if (!is_mmr_replica(pb)) { + return rc; + } + switch (flags) { case SLAPI_PLUGIN_BE_TXN_POST_ADD_FN: