[389-devel] Please review: [389 Project] #19: Convert entryUSN plugin to transaction aware type

Noriko Hosoi nhosoi at redhat.com
Mon Apr 23 19:56:17 UTC 2012


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

https://fedorahosted.org/389/attachment/ticket/19/0001-Trac-Ticket-19-Convert-entryUSN-plugin-to-transactio.patch

  Fix description:
  * Separated usn_bepreop operations from usn_betxnpreop operations.
    usn_bepreop_modify and _modrdn add "entryusn: #" to the mods,
    which should be handled before the transaction starts.
  * Introduced SLAPI_PLUGIN_BE_TXN_PRE_DELETE_TOMBSTONE_FN plugin
    hook to modify the tombstone entry at the betxn timing.
  * Eliminated preventryusn (SLAPI_ATTR_ENTRYUSN_PREV). It was used
    to undo the incremented entryusn when the deletion fails.
    Since the operation is now executed in the transaction and it
    is aborted if the operation fails, the explicit undo is not
    needed in the usn postop.




More information about the 389-devel mailing list