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

Re: (ITS#3831) strange scopes[] in syncrepl.c

h.b.furuseth@usit.uio.no wrote:
> Ah, of course.  So it backs up to always use the same textual name for
> the same scope.  Except, since 0 == LDAP_SCOPE_BASE it looks like
> scope=base will back up to use scopes[-1] or less.
> I suggest the drastic step of adding a "don't use this name" flag
> instead, then it will actually be readable:-)

Yes, I think we should change this to something a bit more readable. The 
scope=base behavior certainly looks bad; we're just lucky that nobody 
has bothered to set up syncrepl to replicate only a single object so far.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support