psync-with-newmaster

code patch for psync_with_newmaster

psync_with_newmaster

static to global server Object

allow replicaiton in slave mode