Skip to content

Conversation

@forkfury
Copy link

@forkfury forkfury commented Dec 7, 2025

Fix

Prevents potential deadlock when WrapDatabaseAsync is created with a handle from a different runtime via with_handle(). The code now verifies that the stored handle belongs to the current runtime before using block_in_place.

Changes

  • Add pointer equality check to ensure handle belongs to current runtime before calling block_in_place
  • Update comments to clarify the runtime ownership requirement

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 7, 2025

CodSpeed Performance Report

Merging #3212 will not alter performance

Comparing forkfury:fix/async-db-handle-runtime-check (eea2fa8) with main (eb37a15)

Summary

✅ 173 untouched

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant