• Resolved liammitchell

    (@liammitchell)


    Is it be possible for multiple calls to recode_transaction at once to double spend?

    For example you have a user logged in twice they try to use an action which calls debit in both sessions at very close time.

    As there is no lock per user that method could fire twice simultaneously, where both executions pass the balance check and insert a debit record.

    Or am I worrying about nothing.

    I would like to add custom plugin code that is able to check balance and use the credit.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to ensure only one spend at a time?’ is closed to new replies.