syncbase/store: fix a race condition

Consider two transactions committing concurrently and doing tx.removeEvent()
at the same time (transaction.go:169). Now the event queue is empty and
both transcations will not be tracked.

Fix: move this line under the tx.mg.mu Lock.

Change-Id: I13b54fa05ea35c413d64226d596dd7e64fc9d5e4
2 files changed
tree: 50d127c659df258bcb90154689b60e16723e4534
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.