Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(txn): discard empty transactions on CommitWith (#2031)
## Problems * Transactions with empty `pendingWrites` were never discarded(and marked as done) for `CommitWith` * This is similar to #2018, which solved the same problem for `Commit`, but not for `CommitWith` * The `CommitWith` is used by `WriteBatch`, so flushing an empty batch never discarded the inner shadowed transaction, causing a multitude of issues. ## Solution Make sure `Discard` is called for `CommitWith` when `pendingWrites` are empty. The existing unit test is updated to assert that.
- Loading branch information