diff --git a/ydb/core/tx/schemeshard/schemeshard_utils.cpp b/ydb/core/tx/schemeshard/schemeshard_utils.cpp index 9529c981c199..74ce3f4b30bc 100644 --- a/ydb/core/tx/schemeshard/schemeshard_utils.cpp +++ b/ydb/core/tx/schemeshard/schemeshard_utils.cpp @@ -317,7 +317,7 @@ NKikimrSchemeOp::TTableDescription CalcImplTableDesc( result.AddKeyColumnNames(keyName); } - if (result.HasReplicationConfig()) { + if (indexTableDesc.HasReplicationConfig()) { result.MutableReplicationConfig()->CopyFrom(indexTableDesc.GetReplicationConfig()); } @@ -388,7 +388,7 @@ NKikimrSchemeOp::TTableDescription CalcImplTableDesc( result.AddKeyColumnNames(keyName); } - if (result.HasReplicationConfig()) { + if (indexTableDesc.HasReplicationConfig()) { result.MutableReplicationConfig()->CopyFrom(indexTableDesc.GetReplicationConfig()); } diff --git a/ydb/core/tx/schemeshard/ut_replication/ut_replication.cpp b/ydb/core/tx/schemeshard/ut_replication/ut_replication.cpp index ce03433e60c0..a9efb04c0fda 100644 --- a/ydb/core/tx/schemeshard/ut_replication/ut_replication.cpp +++ b/ydb/core/tx/schemeshard/ut_replication/ut_replication.cpp @@ -365,11 +365,11 @@ Y_UNIT_TEST_SUITE(TReplicationTests) { IndexDescription { Name: "Index" KeyColumnNames: ["indexed"] - IndexImplTableDescriptions: [ { + IndexImplTableDescription { ReplicationConfig { Mode: REPLICATION_MODE_READ_ONLY } - } ] + } } )"))); TestModificationResults(runtime, txId, {NKikimrScheme::StatusAccepted});