Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/execution/dumper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ impl<'a> Dumper<'a> {
key: value::KeyValue,
file_path: PathBuf,
) -> Result<()> {
let _permit = import_op
.concurrency_controller
.acquire(concur_control::BYTES_UNKNOWN_YET)
.await?;
let mut collected_values_buffer = Vec::new();
let (exports, error) = match self
.evaluate_source_entry(import_op_idx, import_op, &key, &mut collected_values_buffer)
Expand Down
5 changes: 5 additions & 0 deletions src/execution/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@ pub async fn evaluate_source_entry(
source_value: value::FieldValues,
memory: &EvaluationMemory,
) -> Result<EvaluateSourceEntryOutput> {
let _permit = src_eval_ctx
.import_op
.concurrency_controller
.acquire_bytes_with_reservation(|| source_value.estimated_byte_size())
.await?;
let root_schema = &src_eval_ctx.schema.schema;
let root_scope_value = ScopeValueBuilder::new(root_schema.fields.len());
let root_scope_entry = ScopeEntry::new(
Expand Down
9 changes: 0 additions & 9 deletions src/execution/source_indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,6 @@ impl SourceIndexingContext {

{
let _processing_permit = processing_sem.acquire().await?;
let _concur_permit = match &source_data.value {
interface::SourceValue::Existence(value) => {
import_op
.concurrency_controller
.acquire_bytes_with_reservation(|| value.estimated_byte_size())
.await?
}
interface::SourceValue::NonExistence => None,
};
let result = row_indexer::update_source_row(
&SourceRowEvaluationContext {
plan: &plan,
Expand Down