This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit a486d01667f85aaf8fd4a92f272a221c4de490d4
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Dec 11 12:10:25 2013 -0700
add changelog config method
Reviewed by: nkinder (Thanks!)
---
src/lib389/lib389/brooker.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/lib389/lib389/brooker.py b/src/lib389/lib389/brooker.py
index 4cdce8b..1ab729e 100644
--- a/src/lib389/lib389/brooker.py
+++ b/src/lib389/lib389/brooker.py
@@ -534,6 +534,19 @@ class Replica(object):
return self.conn._test_entry(dn, ldap.SCOPE_BASE)
+ def changelog_config(self, maxage=0, maxentries=0, trimInterval=0,
compactInterval=0):
+ mod = []
+ if maxage:
+ mod.append((ldap.MOD_REPLACE, "nsslapd-changelogmaxage",
str(maxage)))
+ if maxentries:
+ mod.append((ldap.MOD_REPLACE, "nsslapd-changelogmaxentries",
str(maxentries)))
+ if trimInterval:
+ mod.append((ldap.MOD_REPLACE, "nsslapd-changelogtrim-interval",
str(trimInterval)))
+ if compactInterval:
+ mod.append((ldap.MOD_REPLACE,
"nsslapd-changelogcompactdb-interval", str(compactInterval)))
+ if mod and len(mod) > 0:
+ self.conn.modify_s(DN_CHANGELOG, mod)
+
def list(self, suffix=None):
"""Return a list of replica entries under the given suffix.
@param suffix - if suffix is None, return all replicas
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.