File tree Expand file tree Collapse file tree
mind/bscontroller/ut_selfheal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }.ToPB ();
11+ }
Original file line number Diff line number Diff line change 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()
Original file line number Diff line number Diff line change @@ -17,18 +17,14 @@ using EComponentId = NKikimrConfig::TCompatibilityRule;
1717using TComponentId = NKikimrConfig::TCompatibilityRule::EComponentId;
1818
1919TCompatibilityInfo::TCompatibilityInfo () {
20- using TCurrentConstructor = TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
2120 using TStoredConstructor = TCompatibilityInfo::TProtoConstructor::TStoredCompatibilityInfo;
22- // using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
2321 using TVersionConstructor = TCompatibilityInfo::TProtoConstructor::TVersion;
2422
2523 // ///////////////////////////////////////////////////////
2624 // Current CompatibilityInfo
2725 // ///////////////////////////////////////////////////////
2826
29- auto current = TCurrentConstructor{
30- .Application = " ydb"
31- }.ToPB ();
27+ auto current = MakeCurrent ();
3228
3329 // bool success = CompleteFromTag(current);
3430 // Y_ABORT_UNLESS(success);
Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ class TCompatibilityInfo {
141141
142142 bool CompleteFromTag (NKikimrConfig::TCurrentCompatibilityInfo& current);
143143
144+ static NKikimrConfig::TCurrentCompatibilityInfo MakeCurrent ();
145+
144146 NKikimrConfig::TStoredCompatibilityInfo MakeStored (TComponentId componentId) const ;
145147 NKikimrConfig::TStoredCompatibilityInfo MakeStored (TComponentId componentId,
146148 const NKikimrConfig::TCurrentCompatibilityInfo* current) const ;
Original file line number Diff line number Diff line change 1616)
1717
1818PEERDIR(
19+ ydb/apps/version
1920 ydb/core/blobstorage/dsproxy/mock
2021 ydb/core/blobstorage/pdisk/mock
2122 ydb/core/mind/bscontroller
You can’t perform that action at this time.
0 commit comments