After using LiteCore C++ API to begin transaction on a closed c4Database which results expectedly to a NotOpen exception, there was an assertion failure later when the database was destructed.
Seem like _transactionLevel shouldn't be bumped if the transaction cannot begin.
Log:
Note: I have noticed this when testing CBL-C API.
Activity
Show:
Jim Borden July 18, 2022 at 6:23 PM
This was fixed inadvertently when working on something else
Fixed
Pinned fields
Click on the next to a field label to start pinning.
LiteCore: 0a5d8f1df282f3be60df3cf76c14a345db23c390
After using LiteCore C++ API to begin transaction on a closed c4Database which results expectedly to a NotOpen exception, there was an assertion failure later when the database was destructed.
Seem like _transactionLevel shouldn't be bumped if the transaction cannot begin.
Log:
Note: I have noticed this when testing CBL-C API.