Skip to content

Comments

Add ColumnFamilyOptions management to prevent garbage collection of merge operator delegates#47

Merged
Havret merged 1 commit intomainfrom
Add-ColumnFamilyOptions-management-to-prevent-garbage-collection-of-merge-operator-delegates
Jan 8, 2026
Merged

Add ColumnFamilyOptions management to prevent garbage collection of merge operator delegates#47
Havret merged 1 commit intomainfrom
Add-ColumnFamilyOptions-management-to-prevent-garbage-collection-of-merge-operator-delegates

Conversation

@Havret
Copy link
Owner

@Havret Havret commented Jan 8, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds management of ColumnFamilyOptions instances to prevent garbage collection of merge operator delegates that RocksDB's native code references. This addresses a critical issue where callbacks would fail on garbage collected delegates.

Key changes:

  • Added a _columnFamilyOptions dictionary to store and retain references to ColumnFamilyOptions instances
  • Modified CreateColumnFamilyOptions to store newly created options in the dictionary
  • Updated Dispose method to clear the dictionary on disposal

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Havret Havret merged commit 6334ca4 into main Jan 8, 2026
7 checks passed
@Havret Havret deleted the Add-ColumnFamilyOptions-management-to-prevent-garbage-collection-of-merge-operator-delegates branch January 8, 2026 12:33
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