Skip to content

Commit

Permalink
disable_sticky_rtx
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiakiNishimura committed Sep 27, 2024
1 parent 7d8901c commit 7a87e0f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/jogasaki/executor/process/flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ sequence_view<std::shared_ptr<model::task>> flow::create_tasks() {
contexts.emplace_back(create_task_context(i, operators, sink_idx_base + i));
}

bool is_rtx = context_->transaction()->option().get()->type()

Check warning on line 132 in src/jogasaki/executor/process/flow.cpp

View workflow job for this annotation

GitHub Actions / Clang-Tidy

readability-redundant-smartptr-get

redundant get() call on smart pointer

Check warning on line 132 in src/jogasaki/executor/process/flow.cpp

View workflow job for this annotation

GitHub Actions / Clang-Tidy-pr

readability-redundant-smartptr-get

redundant get() call on smart pointer
== kvs::transaction_option::transaction_type::read_only;
auto& d = info_->details();
auto exec = factory(proc, contexts);
for (std::size_t i=0; i < partitions; ++i) {
Expand All @@ -137,12 +139,13 @@ sequence_view<std::shared_ptr<model::task>> flow::create_tasks() {
step_,
exec,
proc,
(
d.has_write_operations() ||
d.has_find_operator() ||
d.has_scan_operator() ||
d.has_join_find_or_scan_operator()
)
!(is_rtx && global::config_pool()->rtx_parallel_scan() ) &&
(
d.has_write_operations() ||
d.has_find_operator() ||
d.has_scan_operator() ||
d.has_join_find_or_scan_operator()
)
));
}
return tasks_;
Expand Down

0 comments on commit 7a87e0f

Please sign in to comment.