Skip to content

Commit

Permalink
Merge f0f352a into 96c9390
Browse files Browse the repository at this point in the history
  • Loading branch information
serbel324 authored Mar 6, 2024
2 parents 96c9390 + f0f352a commit ea54d72
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
11 changes: 11 additions & 0 deletions ydb/apps/version/version_definition.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <ydb/core/driver_lib/version/version.h>

NKikimrConfig::TCurrentCompatibilityInfo NKikimr::TCompatibilityInfo::MakeCurrent() {
using TCurrentConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
// using TVersionConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TVersion;
// using TCompatibilityRuleConstructor = NKikimr::TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;

return TCurrentConstructor{
.Application = "ydb",
}.ToPB();
}
11 changes: 11 additions & 0 deletions ydb/apps/version/ya.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LIBRARY(version_definition)

SRCS(
version_definition.cpp
)

PEERDIR(
ydb/core/driver_lib/version
)

END()
6 changes: 1 addition & 5 deletions ydb/core/driver_lib/version/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ using EComponentId = NKikimrConfig::TCompatibilityRule;
using TComponentId = NKikimrConfig::TCompatibilityRule::EComponentId;

TCompatibilityInfo::TCompatibilityInfo() {
using TCurrentConstructor = TCompatibilityInfo::TProtoConstructor::TCurrentCompatibilityInfo;
using TStoredConstructor = TCompatibilityInfo::TProtoConstructor::TStoredCompatibilityInfo;
// using TCompatibilityRuleConstructor = TCompatibilityInfo::TProtoConstructor::TCompatibilityRule;
using TVersionConstructor = TCompatibilityInfo::TProtoConstructor::TVersion;

/////////////////////////////////////////////////////////
// Current CompatibilityInfo
/////////////////////////////////////////////////////////

auto current = TCurrentConstructor{
.Application = "ydb"
}.ToPB();
auto current = MakeCurrent();

// bool success = CompleteFromTag(current);
// Y_ABORT_UNLESS(success);
Expand Down
2 changes: 2 additions & 0 deletions ydb/core/driver_lib/version/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class TCompatibilityInfo {

bool CompleteFromTag(NKikimrConfig::TCurrentCompatibilityInfo& current);

static NKikimrConfig::TCurrentCompatibilityInfo MakeCurrent();

NKikimrConfig::TStoredCompatibilityInfo MakeStored(TComponentId componentId) const;
NKikimrConfig::TStoredCompatibilityInfo MakeStored(TComponentId componentId,
const NKikimrConfig::TCurrentCompatibilityInfo* current) const;
Expand Down
1 change: 1 addition & 0 deletions ydb/core/mind/bscontroller/ut_selfheal/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SRCS(
)

PEERDIR(
ydb/apps/version
ydb/core/blobstorage/dsproxy/mock
ydb/core/blobstorage/pdisk/mock
ydb/core/mind/bscontroller
Expand Down

0 comments on commit ea54d72

Please sign in to comment.