mayorga / 389-ds-base

Forked from 389-ds-base 7 years ago
Clone

9eb6f1b Bug 676655 - winsync stops working after server restart

Authored and Committed by rmeggins 13 years ago
    Bug 676655 - winsync stops working after server restart
    
    https://bugzilla.redhat.com/show_bug.cgi?id=676655
    Resolves: bug 676655
    Bug Description: winsync stops working after server restart
    Reviewed by: nhosoi (Thanks!)
    Branch: 389-ds-base-1.2.8
    Fix Description: The problem really is that the server does not shutdown.
    You have to kill -9 the server.  When it restarts, the sync agreement is no
    longer working.  The problem was only observed on 32-bit platforms.  The
    size of the mmr Repl_Connection structure is different than the size of
    the winsync Repl_Connection structure.  The code was calling conn_delete()
    on the winsync Repl_Connection*.  We have to use windows_conn_delete instead.
    The repl protocol code did not have a place to do that, so I added a new
    delete_conn function pointer so that prot_free can call the right
    conn_delete function.
    Platforms tested: RHEL5 i386, RHEL6 x86_64
    Flag Day: no
    Doc impact: no
    (cherry picked from commit 11f265bdd03832c6255cbf5ba3b79510346a3be0)