Skip to content

Commit 443be37

Browse files
committed
kvserver: metamorphically enable kv.closed_timestamp.lead_for_global_reads_auto_tune.enabled
This commit metamorphically enables kv.closed_timestamp.lead_for_global_reads_auto_tune.enabled. Part of: #143888 Release note: none
1 parent fd9aa49 commit 443be37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/kv/kvserver/closedts/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ go_library(
1313
"//pkg/kv/kvserver/closedts/ctpb",
1414
"//pkg/settings",
1515
"//pkg/util/hlc",
16+
"//pkg/util/metamorphic",
1617
],
1718
)
1819

pkg/kv/kvserver/closedts/setting.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"time"
1010

1111
"github.com/cockroachdb/cockroach/pkg/settings"
12+
"github.com/cockroachdb/cockroach/pkg/util/metamorphic"
1213
)
1314

1415
// NB: These settings are SystemVisible because they need to be read by e.g.
@@ -86,6 +87,6 @@ var LeadForGlobalReadsAutoTuneEnabled = settings.RegisterBoolSetting(
8687
"furthest follower will be used to adjust closed timestamp policies for ranges"+
8788
"ranges configured to serve global reads. "+
8889
"kv.closed_timestamp.lead_for_global_reads_override takes precedence if set.",
89-
false,
90+
metamorphic.ConstantWithTestBool("kv.closed_timestamp.lead_for_global_reads_auto_tune.enabled", false),
9091
settings.WithPublic,
9192
)

0 commit comments

Comments
 (0)