Skip to content

Commit

Permalink
PreprocessTileMergeFuture::await checks merge_ first
Browse files Browse the repository at this point in the history
  • Loading branch information
rroelke committed Jan 17, 2025
1 parent f2ad89b commit 05c1e63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tiledb/sm/query/readers/sparse_global_order_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ struct PreprocessTileMergeFuture {

public:
std::optional<uint64_t> await() {
if (!merge_.has_value()) {
return std::nullopt;
}
auto ret = merge_.value()->await();
if (merge_.value()->finished()) {
free_input();
Expand Down

0 comments on commit 05c1e63

Please sign in to comment.