private _cleanTransaction()

in src/TransactionLockHelper.ts [144:158]


    private _cleanTransaction(token: TransactionToken) {
        if (token.exclusive) {
            for (const storeName of token.storeNames) {
                ok(this._exclusiveLocks[storeName], 'Missing expected exclusive lock for store: ' + storeName);
                this._exclusiveLocks[storeName] = false;
            }
        } else {
            for (const storeName of token.storeNames) {
                ok(this._readOnlyCounts[storeName] > 0, 'Missing expected readonly lock for store: ' + storeName);
                this._readOnlyCounts[storeName]--;
            }
        }

        this._checkNextTransactions();
    }