Skip to content
  • Reinhold Kainhofer's avatar
    V1.2: Fix race condition with counter for concurrent orders · 81e5dbf2
    Reinhold Kainhofer authored
    - Change the counter values to a non-autoloading option
    - Clear the option cache before reading the current counter value
    
    Before this change, one order would change the counter value, but a second order submitted while the first is still processed would get the old, cached value and thus generate duplicate order numbers. This changes make sure that the counter is never used from cached values.
    81e5dbf2