a5ed824 Trac Ticket #19 - Convert entryUSN plugin to transaction aware type

Authored and Committed by nhosoi 11 years ago
    Trac Ticket #19 - Convert entryUSN plugin to transaction aware type
    
    https://fedorahosted.org/389/ticket/19
    
    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.
    
    Reviewed by Rich. (Thank you!!)
    
        
file modified
+70 -82
file modified
+12 -0
file modified
+1 -0
file modified
+3 -0