From daec8049610ad7bbe0718276d2e7d6ffc1a7f66e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 21 Sep 2020 16:25:53 +0200 Subject: [PATCH] Remove magic sleep from create_index_task 11 years ago 5ad91a0781 added a magic sleep to work around a rare deadlock bug in memberOf plugin. Thierry is not aware of any outstanding issues with memberOf plugin that could lead to a deadlock. Related: https://pagure.io/freeipa/issue/8521 Signed-off-by: Christian Heimes Reviewed-By: Rob Crittenden --- ipaserver/install/ldapupdate.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index 87c74a053..15c0ccb50 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -511,10 +511,6 @@ class LDAPUpdate: def create_index_task(self, *attributes): """Create a task to update an index for attributes""" - - # Sleep a bit to ensure previous operations are complete - time.sleep(5) - cn_uuid = uuid.uuid1() # cn_uuid.time is in nanoseconds, but other users of LDAPUpdate expect # seconds in 'TIME' so scale the value down