Skip to content

Remove unnecessary Mutex in SharedMemoryReservation#21899

Merged
gabotechs merged 1 commit intomainfrom
gabotechs/remove-unnecessary-mutex-memory-reservation
Apr 29, 2026
Merged

Remove unnecessary Mutex in SharedMemoryReservation#21899
gabotechs merged 1 commit intomainfrom
gabotechs/remove-unnecessary-mutex-memory-reservation

Conversation

@gabotechs
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

After #19759, all the methods of a MemoryReservation take &self instead of &mut self, so no need to hide a SharedMemoryReservation behind a Mutex.

What changes are included in this PR?

Remove an unnecessary Mutex

Are these changes tested?

By existing unit tests

Are there any user-facing changes?

No

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Apr 28, 2026
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gabotechs
Copy link
Copy Markdown
Contributor Author

Thanks @alamb and @Dandandan!

@gabotechs gabotechs added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit 61fe692 Apr 29, 2026
85 of 87 checks passed
@gabotechs gabotechs deleted the gabotechs/remove-unnecessary-mutex-memory-reservation branch April 29, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants