Assertion when destructing database after calling beginTransaction() on the closed database

Description

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.

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.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 8, 2022 at 8:57 PM
Updated July 18, 2022 at 6:23 PM
Resolved July 18, 2022 at 6:23 PM
Instabug