Skip to content
Snippets Groups Projects
  1. Nov 06, 2019
  2. Nov 05, 2019
  3. Oct 31, 2019
  4. Oct 30, 2019
  5. Oct 29, 2019
  6. Oct 25, 2019
  7. Oct 24, 2019
    • Ramakrishnan Muthukrishnan's avatar
      do the read/write operations from the db should be in a transaction · 495b5492
      Ramakrishnan Muthukrishnan authored
      `redeemVoucher' reads stuff from the db, makes decisions and then
      writes to the db. However if there is another client doing a
      simultaneous `redeemVoucher' for the same `voucher', then both of them
      would redeem the voucher, which is incorrect. The operations should
      have exclusive access to the db and this is achieved with
      `withExclusiveTransaction`.
      495b5492
Loading