summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-03-18 13:05:41 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-03-18 13:05:41 (GMT)
commit9389961a04bc77a9ec9b82a3359e7fc7bba06016 (patch)
tree41d1128d68356e34f1beb156f89533fe9e4d9c7e
parenta4b80d320b42bec56a9b5154e1e005952b2affd2 (diff)
downloadpykolab-9389961a04bc77a9ec9b82a3359e7fc7bba06016.tar.gz
Use the new domain naming context comparison function to reduce the number of processes against hosted (#4260)
Domain name spaces are translated back to the domain that owns the naming context, and skipped a separate process for should the naming context already be synchronized by another process.
-rw-r--r--kolabd/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index 92a929c..6a0fd32 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -248,7 +248,9 @@ class KolabDaemon(object):
# domains now is a list of tuples, we want the primary_domains
primary_domains = []
for primary_domain in list(set(domains.values())):
- primary_domains.append(primary_domain)
+ primary_domain = primary_auth.domain_naming_context(primary_domain)
+ if not primary_domain == None:
+ primary_domains.append(primary_domain)
# Now we can check if any changes happened.
added_domains = []