8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Support for "read committed read consistency" mode in monitoring tables

This commit is contained in:
hvlad 2017-04-12 18:42:06 +03:00
parent f9ca873c65
commit f3637f4898
3 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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