Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberROFL committed Jul 28, 2024
1 parent 57be867 commit 5f92aea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ydb/core/tx/schemeshard/schemeshard_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ NKikimrSchemeOp::TTableDescription CalcImplTableDesc(
result.AddKeyColumnNames(keyName);
}

if (result.HasReplicationConfig()) {
if (indexTableDesc.HasReplicationConfig()) {
result.MutableReplicationConfig()->CopyFrom(indexTableDesc.GetReplicationConfig());
}

Expand Down Expand Up @@ -388,7 +388,7 @@ NKikimrSchemeOp::TTableDescription CalcImplTableDesc(
result.AddKeyColumnNames(keyName);
}

if (result.HasReplicationConfig()) {
if (indexTableDesc.HasReplicationConfig()) {
result.MutableReplicationConfig()->CopyFrom(indexTableDesc.GetReplicationConfig());
}

Expand Down
4 changes: 2 additions & 2 deletions ydb/core/tx/schemeshard/ut_replication/ut_replication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit 5f92aea

Please sign in to comment.