This commit does the followings:
- Refactor reference table replication logic for replicating to a
single node instead of always replicating to all nodes
- Add a new parameter to master_add_node(..,.., activate_node
DEFAULT true)
- If activate is true, replicate reference tables
- Else, do not replicate reference tables
- New API for activating node: master_activate_node(host, port)
- currently only replicates reference tables
This change adds support for serial columns to be used with MX tables.
Prior to this change, sequences of serial columns were created in all
workers (for being able to create shards) but never used. With MX, we
need to set the sequences so that sequences in each worker create
unique values. This is done by setting the MINVALUE, MAXVALUE and
START values of the sequence.