public static Message buildPullTxnReq ( Zxid lastZxid ) { ZabMessage . Zxid zxid = toProtoZxid ( lastZxid ) ; PullTxnReq req = PullTxnReq . newBuilder ( ) . setLastZxid ( zxid ) . build ( ) ; return Message . newBuilder ( ) . setType ( MessageType . PULL_TXN_REQ ) . setPullTxnReq ( req ) . build ( ) ; }
Creates a PULL_TXN_REQ message to ask follower sync its history to leader .