Skip to content

Commit 8688b17

Browse files
authored
Move construction of current compatibility information out of driver_lib (#2633)
1 parent 3f93680 commit 8688b17

File tree

17 files changed

+65
-32
lines changed

17 files changed

+65
-32
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#include <ydb/core/driver_lib/version/version.h>
2+
3+
NKikimrConfig::TCurrentCompatibilityInfo NKikimr::TCompatibilityInfo::MakeCurrent() {
4+
using TCurrentConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
5+
using TVersionConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TVersion;
6+
using TCompatibilityRuleConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
7+
8+
return TCurrentConstructor{
9+
.Application = "ydb",
10+
.Version = TVersionConstructor{
11+
.Year = 24,
12+
.Major = 1,
13+
},
14+
.CanLoadFrom = {
15+
TCompatibilityRuleConstructor{
16+
.LowerLimit = TVersionConstructor{ .Year = 23, .Major = 4 },
17+
.UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 },
18+
},
19+
},
20+
.StoresReadableBy = {
21+
TCompatibilityRuleConstructor{
22+
.LowerLimit = TVersionConstructor{ .Year = 23, .Major = 4 },
23+
.UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 },
24+
},
25+
},
26+
.CanConnectTo = {
27+
TCompatibilityRuleConstructor{
28+
.LowerLimit = TVersionConstructor{ .Year = 23, .Major = 4 },
29+
.UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 },
30+
},
31+
TCompatibilityRuleConstructor{
32+
.Application = "nbs",
33+
.LowerLimit = TVersionConstructor{ .Year = 23, .Major = 3 },
34+
.UpperLimit = TVersionConstructor{ .Year = 24, .Major = 1 },
35+
},
36+
}
37+
}.ToPB();
38+
}

ydb/apps/version/ya.make

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
LIBRARY(version_definition)
2+
3+
SRCS(
4+
version_definition.cpp
5+
)
6+
7+
PEERDIR(
8+
ydb/core/driver_lib/version
9+
)
10+
11+
END()

ydb/apps/ydbd/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ IF (ARCH_X86_64)
3535
ENDIF()
3636

3737
PEERDIR(
38+
ydb/apps/version
3839
ydb/core/driver_lib/run
3940
ydb/core/protos
4041
ydb/core/security

ydb/core/actorlib_impl/ut/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ELSE()
1313
ENDIF()
1414

1515
PEERDIR(
16+
ydb/apps/version
1617
ydb/library/actors/core
1718
ydb/library/actors/interconnect
1819
library/cpp/getopt

ydb/core/blobstorage/incrhuge/ut/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ELSE()
1212
ENDIF()
1313

1414
PEERDIR(
15+
ydb/apps/version
1516
ydb/library/actors/protos
1617
ydb/core/blobstorage
1718
ydb/core/blobstorage/incrhuge

ydb/core/blobstorage/ut_blobstorage/lib/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ SRCS(
1616
PEERDIR(
1717
library/cpp/digest/md5
1818
library/cpp/testing/unittest
19+
ydb/apps/version
1920
ydb/core/base
2021
ydb/core/blob_depot
2122
ydb/core/blobstorage/backpressure

ydb/core/blobstorage/ut_group/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ELSE()
1616
ENDIF()
1717

1818
PEERDIR(
19+
ydb/apps/version
1920
ydb/library/actors/interconnect/mock
2021
library/cpp/testing/unittest
2122
ydb/core/blobstorage/crypto

ydb/core/blobstorage/ut_mirror3of4/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SIZE(MEDIUM)
99
TIMEOUT(600)
1010

1111
PEERDIR(
12+
ydb/apps/version
1213
ydb/library/actors/interconnect/mock
1314
library/cpp/testing/unittest
1415
ydb/core/blobstorage/backpressure

ydb/core/blobstorage/ut_vdisk/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ SRCS(
1818
)
1919

2020
PEERDIR(
21+
ydb/apps/version
2122
ydb/library/actors/protos
2223
library/cpp/codecs
2324
ydb/core/base

ydb/core/blobstorage/ut_vdisk2/ya.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ SRCS(
1616
)
1717

1818
PEERDIR(
19+
ydb/apps/version
1920
library/cpp/testing/unittest
2021
ydb/core/blobstorage/backpressure
2122
ydb/core/blobstorage/groupinfo

0 commit comments

Comments
 (0)