Skip to content

Commit

Permalink
fix calc delete bitmap should run in pthread context
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Dec 21, 2023
1 parent ee97171 commit 22bc123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion be/src/runtime/load_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ Status TabletStream::close() {
if (!_failed_st->ok()) {
return *_failed_st;
}
return _load_stream_writer->close();
Status st = Status::OK();
auto close_func = [this, &st]() { st = _load_stream_writer->close(); };
RETURN_IF_ERROR(_flush_tokens[0]->submit_func(close_func));
_flush_tokens[0]->wait();
return st;
}

IndexStream::IndexStream(PUniqueId load_id, int64_t id, int64_t txn_id,
Expand Down

0 comments on commit 22bc123

Please sign in to comment.