forked from cockroachdb/cockroach
/
cluster_version.go
51 lines (43 loc) · 2.13 KB
/
cluster_version.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2017 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.
package cluster
import "github.com/cockroachdb/cockroach/pkg/roachpb"
var (
// BinaryMinimumSupportedVersion is the earliest version of data supported
// by this binary. If this binary is started using a store that has data
// marked with an earlier version than BinaryMinimumSupportedVersion, then
// the binary will exit with an error.
BinaryMinimumSupportedVersion = VersionBase
// BinaryServerVersion is the version of this binary.
BinaryServerVersion = Version1_1_0
)
// List all historical versions here in reverse chronological order, with
// comments describing what backwards-incompatible features were introduced.
//
// NB: when adding a version, don't forget to bump ServerVersion above (and
// perhaps MinimumSupportedVersion, if necessary).
var (
// CockroachDB v1.1.0.
Version1_1_0 = roachpb.Version{Major: 1, Minor: 1}
// VersionStatsBasedRebalancing is https://github.com/cockroachdb/cockroach/pull/16878.
VersionStatsBasedRebalancing = roachpb.Version{Major: 1, Minor: 0, Unstable: 3}
// VersionSplitHardStateBelowRaft is https://github.com/cockroachdb/cockroach/pull/17051.
VersionSplitHardStateBelowRaft = roachpb.Version{Major: 1, Minor: 0, Unstable: 2}
// VersionRaftLogTruncationBelowRaft is https://github.com/cockroachdb/cockroach/pull/16993.
VersionRaftLogTruncationBelowRaft = roachpb.Version{Major: 1, Minor: 0, Unstable: 1}
// VersionBase corresponds to any binary older than 1.0-1,
// though these binaries won't know anything about the mechanism in which
// this version is used.
VersionBase = roachpb.Version{Major: 1}
)