8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Fixed change of transaction type

This commit is contained in:
AlexPeshkoff 2025-01-14 20:07:37 +03:00
parent fda52dd662
commit f61bdeb118

View File

@ -786,7 +786,9 @@ public:
static bool scanCallback(thread_db* tdbb, OBJ* obj, bool rld, ObjectBase::Flag fl)
{
fb_assert(obj);
Firebird::AutoSetRestoreFlag readCommitted(TransactionNumber::getFlags(tdbb), TRA_read_committed, true);
auto* flags = TransactionNumber::getFlags(tdbb);
Firebird::AutoSetRestoreFlag readCommitted(flags,
(*flags) & TRA_degree3 ? 0 : TRA_read_committed | TRA_rec_version, true);
return rld ? obj->reload(tdbb, fl) : obj->scan(tdbb, fl);
}