mirror of https://github.com/citusdata/citus.git
Set default threshold on get_rebalance_table_shards_plan to 0, like rebalance_table_shards (#3039)
In this PR the default `threshold` of `rebalance_table_shards` was set to 0: https://github.com/citusdata/shard_rebalancer/pull/73 However, the default for get_rebalance_table_shards_plan was not updated. This can cause the confusing situation where the actual steps run by `rebalance_table_shards` are not the same as the ones returned by `get_rebalance_table_shards_plan`.pull/3021/head
parent
6adf64efdb
commit
dab16be283
|
@ -5,7 +5,7 @@
|
||||||
--
|
--
|
||||||
CREATE OR REPLACE FUNCTION pg_catalog.get_rebalance_table_shards_plan(
|
CREATE OR REPLACE FUNCTION pg_catalog.get_rebalance_table_shards_plan(
|
||||||
relation regclass,
|
relation regclass,
|
||||||
threshold float4 default 0.1,
|
threshold float4 default 0,
|
||||||
max_shard_moves int default 1000000,
|
max_shard_moves int default 1000000,
|
||||||
excluded_shard_list bigint[] default '{}')
|
excluded_shard_list bigint[] default '{}')
|
||||||
RETURNS TABLE (table_name regclass,
|
RETURNS TABLE (table_name regclass,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
--
|
--
|
||||||
CREATE OR REPLACE FUNCTION pg_catalog.get_rebalance_table_shards_plan(
|
CREATE OR REPLACE FUNCTION pg_catalog.get_rebalance_table_shards_plan(
|
||||||
relation regclass,
|
relation regclass,
|
||||||
threshold float4 default 0.1,
|
threshold float4 default 0,
|
||||||
max_shard_moves int default 1000000,
|
max_shard_moves int default 1000000,
|
||||||
excluded_shard_list bigint[] default '{}')
|
excluded_shard_list bigint[] default '{}')
|
||||||
RETURNS TABLE (table_name regclass,
|
RETURNS TABLE (table_name regclass,
|
||||||
|
|
Loading…
Reference in New Issue