phi_attrs icon indicating copy to clipboard operation
phi_attrs copied to clipboard

adding checks if the method is already defined

Open egreer opened this issue 1 year ago • 0 comments

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 avatar Nov 26 '24 19:11 egreer