Skip to content

Commit 8faaecb

Browse files
committed
Avoid taking Cypress locks for ytflow engine
commit_hash:709110c488af0e6bf6ddd3611f8d310b1f63a292
1 parent 6066ffa commit 8faaecb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

yt/yql/providers/yt/provider/yql_yt_load_table_meta.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ class TYtLoadTableMetadataTransformer : public TGraphTransformerBase {
139139
}
140140

141141
auto config = loadEpoch ? State_->Configuration->GetSettingsVer(settingsVer) : State_->Configuration->Snapshot();
142-
opts.Config(config).ReadOnly(State_->Types->IsReadOnly).Epoch(loadEpoch);
142+
opts.Config(config)
143+
.ReadOnly(State_->Types->IsReadOnly || State_->Types->EngineType == EEngineType::Ytflow)
144+
.Epoch(loadEpoch);
143145

144146
auto future = State_->Gateway->GetTableInfo(std::move(opts));
145147
auto loadCtx = LoadCtx;

0 commit comments

Comments
 (0)