@@ -19,18 +19,44 @@ using TComponentId = NKikimrConfig::TCompatibilityRule::EComponentId;
19
19
TCompatibilityInfo::TCompatibilityInfo () {
20
20
using TCurrentConstructor = TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
21
21
using TStoredConstructor = TCompatibilityInfo::TProtoConstructor::TStoredCompatibilityInfo;
22
- // using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
22
+ using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
23
23
using TVersionConstructor = TCompatibilityInfo::TProtoConstructor::TVersion;
24
24
25
25
// ///////////////////////////////////////////////////////
26
26
// Current CompatibilityInfo
27
27
// ///////////////////////////////////////////////////////
28
28
29
29
auto current = TCurrentConstructor{
30
- .Application = " ydb"
30
+ .Application = " ydb" ,
31
+ .Version = TVersionConstructor{
32
+ .Year = 24 ,
33
+ .Major = 1 ,
34
+ },
35
+ .CanConnectTo = {
36
+ TCompatibilityRuleConstructor{
37
+ .Application = " ydb" ,
38
+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
39
+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
40
+ },
41
+ },
42
+ .CanLoadFrom = {
43
+ TCompatibilityRuleConstructor{
44
+ .Application = " ydb" ,
45
+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
46
+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
47
+ },
48
+ },
49
+ .StoresReadableBy = {
50
+ TCompatibilityRuleConstructor{
51
+ .Application = " ydb" ,
52
+ .LowerLimit = TVersionConstructor{ .Year = 23 , .Major = 3 },
53
+ .UpperLimit = TVersionConstructor{ .Year = 24 , .Major = 1 },
54
+ },
55
+ }
31
56
}.ToPB ();
32
57
33
- // bool success = CompleteFromTag(current);
58
+ bool success = CompleteFromTag (current);
59
+ Y_UNUSED (success);
34
60
// Y_ABORT_UNLESS(success);
35
61
36
62
CurrentCompatibilityInfo.CopyFrom (current);
@@ -76,12 +102,14 @@ const TStored* TCompatibilityInfo::GetDefault(TComponentId componentId) const {
76
102
// obsolete version control
77
103
TMaybe<NActors::TInterconnectProxyCommon::TVersionInfo> VERSION = NActors::TInterconnectProxyCommon::TVersionInfo{
78
104
// version of this binary
79
- " trunk " ,
105
+ " stable-24-1 " ,
80
106
81
107
// compatible versions; must include all compatible old ones, including this one; version verification occurs on both
82
108
// peers and connection is accepted if at least one of peers accepts the version of the other peer
83
109
{
84
- " trunk"
110
+ " stable-23-3" ,
111
+ " stable-23-4" ,
112
+ " stable-24-1"
85
113
}
86
114
};
87
115
0 commit comments