[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Correct way to load LDIF in mirrormode



On Sun, Nov 22, 2009 at 5:42 AM, Howard Chu <hyc@symas.com> wrote:> but it will only write related data if (update_ctxcsn)

The manpage clearly states that -S sets the SID used in generated entryCSNs.

It also clearly states that the -w option writes the contextCSN based on the
greatest entryCSN in the database.

Period, end of story.

Indeed.

So the consequence is that the -S <sid> option is used to initialize the entryCSN's, regardless of if the -w option being provided.

If the -w option is provided, then the entryCSN's are searched for the maximal entryCSN, which becomes the contextCSN (either recently generated, or provided as part of the LDIF being loaded)

If the -S is not provided, it defaults to 0.
 
Thanks for your patience..

Cheers
Brett