Skip to content

Commit

Permalink
More robust non-empty buffer check during ingestion (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
gspowley authored Dec 5, 2024
1 parent 89f4489 commit b273be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtiledbvcf/src/write/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ std::pair<uint64_t, uint64_t> Writer::ingest_samples_v4(

// When an ingestion worker is finished, clear its query buffers
// only if the query buffers are not empty.
if (finished && worker->records_buffered() > 0) {
if (finished && utils::query_buffers_set(query_.get())) {
worker->buffers().clear_query_buffers(
query_.get(), dataset_->metadata().version);
}
Expand Down

0 comments on commit b273be6

Please sign in to comment.