Transferring mastership of a branch

When a branch is created, it is mastered by the replica that masters the branch type. This is called default mastership. When you transfer mastership of a branch to another replica, using the chmaster command, that replica now masters the branch. This is called explicit mastership.

About this task

Procedure

  1. At the master replica, enter a chmaster command:
    MINUTEMAN% multitool chmaster –c "bugfix at bangalore" bangalore 
    Makefile@@/main
    Changed mastership of branch "Makefile@@/main" to "bangalore"
    
  2. At the old master replica, export an update packet to the new master replica:
    MINUTEMAN% multitool syncreplica –export –fship bangalore@/vobs/dev
     
    Generating synchronization packet 
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sync_boston_hub_1
    0-Dec-02.18.15.57_3056_1
    - shipping order file is
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sh_o_sync_boston_
    hub_10-Dec-02.18.15.57_3056_1
    Attempting to forward/deliver generated packets...
    -- Forwarded/delivered packet
    /opt/hcl/ccm/versionvault/shipping/ms_ship/outgoing/sync_boston_hub_1
    0-Dec-02.18.15.57_3056_1
    
  3. At the new master replica, import the packet:
    RAMOHALLI> multitool syncreplica –import –receive 
    Applied sync. packet C:\Program Files\HCL\CCM\VersionVault\var\shipping
    \ms_ship\incoming\sync_boston_hub_10-Dec-02.18.15.57_3056_1 to VOB 
    \\ramohalli\vobs\dev.vbs
    
  4. At the new master replica, verify that mastership has been received:
    RAMOHALLI> multitool describe –fmt "%n\t%[master]p\n" Makefile@@\main
    Makefile@@\main      bangalore@\dev
    

What to do next

For information about enabling use of the reqmaster command, see Implementing requests for mastership.