Bug 1843156

Summary: Prevent unnecessarily duplication of the target entry
Product: Red Hat Enterprise Linux 8 Reporter: mreynolds
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: pasik, spichugi, tbordaz, vashirov
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-1.4-8030020200605214214.618f7055 Doc Type: Bug Fix
Doc Text:
Cause: Unnecessary Slapi_Entry duplication when performing various operations. Consequence: This impacts performance as this is a very expensive task to perform. Fix: Do not duplicate entries unless absolutely necessary in the code. Result: Slight performance boost, and slightly less memory fragmentation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:07:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mreynolds 2020-06-02 17:46:47 UTC
This bug is created as a clone of upstream ticket:
https://pagure.io/389-ds-base/issue/51076

#### Issue Description

When a update operation is performed the MEP plugin unnecessarily duplicates the entry (twice).

This could be related to the performance problem we see with MEP as reported in this ticket:

https://pagure.io/389-ds-base/issue/49318

There are other unnecessary duplications in op_shared_modify() as well

Comment 6 errata-xmlrpc 2020-11-04 03:07:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (389-ds:1.4 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4695