diff options
Diffstat (limited to 'storage/innobase/include/log0log.ic')
-rw-r--r-- | storage/innobase/include/log0log.ic | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storage/innobase/include/log0log.ic b/storage/innobase/include/log0log.ic index caf497606d8..a53f8770cea 100644 --- a/storage/innobase/include/log0log.ic +++ b/storage/innobase/include/log0log.ic @@ -439,15 +439,14 @@ Gets the last lsn that is fully flushed to disk. UNIV_INLINE ib_uint64_t log_get_flush_lsn(void) -/*=============*/ { ib_uint64_t lsn; - mutex_enter(&(log_sys->mutex)); + log_mutex_enter(); lsn = log_sys->flushed_to_disk_lsn; - mutex_exit(&(log_sys->mutex)); + log_mutex_exit(); return(lsn); } @@ -458,7 +457,7 @@ Gets the current lsn with a trylock UNIV_INLINE lsn_t log_get_lsn_nowait(void) -/*=============*/ +/*====================*/ { lsn_t lsn=0; |