This is an automated email from the git hooks/post-receive script.
lkrispen pushed a commit to branch 389-ds-base-1.4.1
in repository 389-ds-base.
commit 1ab768e21de737f1b3abba2ce97f66a9c101aa81
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
AuthorDate: Thu Sep 12 09:42:31 2019 +0200
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
---
ldap/servers/plugins/replication/repl5_plugins.c | 8 ++++++++
1 file changed, 8 insertions(+)
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:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date