]> git.sur5r.net Git - openldap/commit
slaptools update : replica promotion / demotion
authorJong Hyuk Choi <jongchoi@openldap.org>
Tue, 7 Oct 2003 20:01:37 +0000 (20:01 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Tue, 7 Oct 2003 20:01:37 +0000 (20:01 +0000)
commita8574a450f9bd4d71d1456803294c5eff5de9c59
tree328d9503632958b1d11ca4a9fa84638d58a78089
parent6c25cb17d5ad471b7826bb971aae4e2eafee666b
slaptools update : replica promotion / demotion
new slapadd options
-p       : promote : If the ldif file contains syncConsumerSubentries, convert
                     them to a single syncProviderSubentry. Its contextCSN
                     attribute has the largest value of the syncreplCookie
                     attributes of the syncConsumerSubentries.
                     syncProviderSubentry in the ldif file is retained.
-p -w    : promote : Recalculate contextCSN based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory.
-r       : demote  : If the ldif file contains syncProviderSubentry, convert it
                     to a syncConsumerSubentry having the default syncrepl id
                     of 0. syncConsumerSubentries in the ldif file are retained.
-r -w    : demote  : Recalculate syncreplCookie based on entryCSN of each entry.
           create    Existing syncConsumerSubentries and syncProviderSubentry
                     are ignored and not added to the directory. The default
                     syncrepl id of 0 will be used for the new
                     syncConsumerSubentry.
-r -w -i %d[,%d]*  : Using the comma separated list followed by the -i option,
                     it is possible to create multiple syncConsumerSubentries
                     having the syncrepl ids specified in the list.
                     syncreplCookie values of these sycnConsumerSubentries
                     will have the same value, either from the maximum
                     entryCSN value or from the contextCSN value of the
                     syncProviderSubentry.
servers/slapd/config.c
servers/slapd/proto-slap.h
servers/slapd/syncrepl.c
servers/slapd/tools/Makefile.in
servers/slapd/tools/mimic.c
servers/slapd/tools/slapadd.c
servers/slapd/tools/slapcommon.c
servers/slapd/tools/slapcommon.h