From 10970c2a8aa424dd712c8a0f17a8f58ed12511b4 Mon Sep 17 00:00:00 2001 From: Sergey Belyakov Date: Mon, 5 Feb 2024 11:20:02 +0000 Subject: [PATCH] Add compatibility info --- ydb/core/driver_lib/version/version.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ydb/core/driver_lib/version/version.cpp b/ydb/core/driver_lib/version/version.cpp index 4781640d0339..6057561a2dd3 100644 --- a/ydb/core/driver_lib/version/version.cpp +++ b/ydb/core/driver_lib/version/version.cpp @@ -27,10 +27,15 @@ TCompatibilityInfo::TCompatibilityInfo() { ///////////////////////////////////////////////////////// auto current = TCurrentConstructor{ - .Application = "ydb" + .Application = "ydb", + .Version = TVersionConstructor{ + .Year = 24, + .Major = 1, + } }.ToPB(); - // bool success = CompleteFromTag(current); + bool success = CompleteFromTag(current); + Y_UNUSED(success); // Y_ABORT_UNLESS(success); CurrentCompatibilityInfo.CopyFrom(current); @@ -76,12 +81,14 @@ const TStored* TCompatibilityInfo::GetDefault(TComponentId componentId) const { // obsolete version control TMaybe VERSION = NActors::TInterconnectProxyCommon::TVersionInfo{ // version of this binary - "trunk", + "stable-24-1", // compatible versions; must include all compatible old ones, including this one; version verification occurs on both // peers and connection is accepted if at least one of peers accepts the version of the other peer { - "trunk" + "stable-23-3", + "stable-23-4", + "stable-24-1" } };