Skip to content
Snippets Groups Projects
Commit 528ea2f8 authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

sync with the man page slapadd(8) : does not change syncrepl entries in the...

sync with the man page slapadd(8) : does not change syncrepl entries in the ldif file when neither of the promotion (-p) or the demotion (-r) option is given.
parent 129aa288
Branches
Tags
No related merge requests found
......@@ -305,7 +305,8 @@ main( int argc, char **argv )
}
}
if ( update_ctxcsn == SLAP_TOOL_CTXCSN_KEEP ) {
if ( update_ctxcsn == SLAP_TOOL_CTXCSN_KEEP &&
( replica_promotion || replica_demotion )) {
if ( is_entry_syncProviderSubentry( e )) {
if ( !LDAP_SLIST_EMPTY( &consumer_subentry )) {
fprintf( stderr, "%s: consumer and provider subentries "
......@@ -399,8 +400,9 @@ main( int argc, char **argv )
}
}
if ( !is_entry_syncProviderSubentry( e ) &&
!is_entry_syncConsumerSubentry( e )) {
if (( !is_entry_syncProviderSubentry( e ) &&
!is_entry_syncConsumerSubentry( e )) ||
( !replica_promotion && !replica_demotion )) {
if (!dryrun) {
ID id = be->be_entry_put( be, e, &bvtext );
if( id == NOID ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment