Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* Copyright 2007-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2025 3A Systems,LLC.
* Portions Copyright 2025-2026 3A Systems,LLC.
*/
package org.opends.server.core;

Expand Down Expand Up @@ -678,6 +678,23 @@ private void doPostDelete(PluginOperation deleteOperation, Entry entry)
return;
}

// Fast path: this hook runs for every delete, but almost no deleted
// entries have a group registered at or below them. Check with the read
// lock first instead of serializing all delete threads on the exclusive
// lock (same pattern as SubentryManager.doPostDelete).
lock.readLock().lock();
try
{
if (!groupInstances.containsSubtree(entry.getName()))
{
return;
}
}
finally
{
lock.readLock().unlock();
}

lock.writeLock().lock();
try
{
Expand Down