mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Support for "read committed read consistency" mode in monitoring tables
This commit is contained in:
parent
f9ca873c65
commit
f3637f4898
@ -119,6 +119,7 @@ Monitoring tables
|
|||||||
1: concurrency
|
1: concurrency
|
||||||
2: read committed record version
|
2: read committed record version
|
||||||
3: read committed no record version
|
3: read committed no record version
|
||||||
|
4: read committed read consistency
|
||||||
- MON$LOCK_TIMEOUT (lock timeout)
|
- MON$LOCK_TIMEOUT (lock timeout)
|
||||||
-1: infinite wait
|
-1: infinite wait
|
||||||
0: no wait
|
0: no wait
|
||||||
|
@ -978,8 +978,10 @@ void Monitoring::putTransaction(SnapshotData::DumpRecord& record, const jrd_tra*
|
|||||||
temp = iso_mode_consistency;
|
temp = iso_mode_consistency;
|
||||||
else if (transaction->tra_flags & TRA_read_committed)
|
else if (transaction->tra_flags & TRA_read_committed)
|
||||||
{
|
{
|
||||||
temp = (transaction->tra_flags & TRA_rec_version) ?
|
temp = (transaction->tra_flags & TRA_read_consistency) ?
|
||||||
iso_mode_rc_version : iso_mode_rc_no_version;
|
iso_mode_rc_read_consistency :
|
||||||
|
(transaction->tra_flags & TRA_rec_version) ?
|
||||||
|
iso_mode_rc_version : iso_mode_rc_no_version;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
temp = iso_mode_concurrency;
|
temp = iso_mode_concurrency;
|
||||||
|
@ -265,7 +265,8 @@ enum tra_iso_mode_t {
|
|||||||
iso_mode_consistency = 0,
|
iso_mode_consistency = 0,
|
||||||
iso_mode_concurrency = 1,
|
iso_mode_concurrency = 1,
|
||||||
iso_mode_rc_version = 2,
|
iso_mode_rc_version = 2,
|
||||||
iso_mode_rc_no_version = 3
|
iso_mode_rc_no_version = 3,
|
||||||
|
iso_mode_rc_read_consistency = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
// statistics groups
|
// statistics groups
|
||||||
|
Loading…
Reference in New Issue
Block a user