Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding checks if the method is already defined #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

egreer
Copy link
Contributor

@egreer egreer commented Nov 26, 2024

There is a possibility that if the active record is forked in the middle of initialization when under periods of high load that we define a wrapped method twice where the wrapped_method may be called with the relation = send(unwrapped_method, *args, **kwargs, &block) multiple times.

This change is mostly a prospective fix as it is nearly impossible to replicate not under load.

@egreer egreer requested a review from wkirby November 26, 2024 19:43
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