mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
branches/zip: log_reserve_and_write_fast(): Correct a race condition
in UNIV_LOG_LSN_DEBUG. This could have caused Issue #440.
This commit is contained in:
parent
9f00612b52
commit
b045a484e8
1 changed files with 6 additions and 3 deletions
|
@ -314,12 +314,15 @@ log_reserve_and_write_fast(
|
|||
ulint data_len;
|
||||
#ifdef UNIV_LOG_LSN_DEBUG
|
||||
/* length of the LSN pseudo-record */
|
||||
ulint lsn_len = 1
|
||||
+ mach_get_compressed_size(log_sys->lsn >> 32)
|
||||
+ mach_get_compressed_size(log_sys->lsn & 0xFFFFFFFFUL);
|
||||
ulint lsn_len;
|
||||
#endif /* UNIV_LOG_LSN_DEBUG */
|
||||
|
||||
mutex_enter(&log_sys->mutex);
|
||||
#ifdef UNIV_LOG_LSN_DEBUG
|
||||
lsn_len = 1
|
||||
+ mach_get_compressed_size(log_sys->lsn >> 32)
|
||||
+ mach_get_compressed_size(log_sys->lsn & 0xFFFFFFFFUL);
|
||||
#endif /* UNIV_LOG_LSN_DEBUG */
|
||||
|
||||
data_len = len
|
||||
#ifdef UNIV_LOG_LSN_DEBUG
|
||||
|
|
Loading…
Reference in a new issue