[389-devel] Please review: [389 Project] #47523: Set up replcation/agreement before initializing the sub suffix, the sub suffix is not found by ldapsearch

Noriko Hosoi nhosoi at redhat.com
Thu Sep 26 16:41:44 UTC 2013


https://fedorahosted.org/389/ticket/47523

https://fedorahosted.org/389/attachment/ticket/47523/0001-Ticket-47523-Set-up-replcation-agreement-before-init.patch

  Bug description: If a replication is configured against a backend
  before initializing the backend with a suffix entry, an RUV entry
  is inserted first with the entryid 1. The RUV entry's entryrdn is
  added to the entryrdn index with a suffix entry which is a parent
  entry of the RUV entry having a temporary entryid 0, which was to
  be replaced with the real entryid when the real suffix entry is
  added.  But the replacement code was not executed.

  Fix description: When a real suffix is added to the entryrdn index,
  it returns DB_KEYEXIST, which used to be ignored by resetting 0
  (== SUCCESS).  This patch returns DB_KEYEXIST to the caller and let
  _entryrdn_insert_key use the info to replace the temporary entryid
  with the real one.  The error code is ignored by the other callers.



More information about the 389-devel mailing list