summaryrefslogtreecommitdiff
path: root/storage/xtradb/buf/buf0flu.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-04-20 20:25:46 +0200
committerSergei Golubchik <serg@mariadb.org>2016-04-20 20:25:46 +0200
commit0991e19e9d38f7475390276c0557c2390e4d93c9 (patch)
tree89944fd1518b252227ab4e6a6353916cf1b47008 /storage/xtradb/buf/buf0flu.c
parent2a45fa900b5916e9b789b1a4052ffd7c724f4166 (diff)
parent63c834e7c44d45acceb2110a1970c9719655fdc6 (diff)
downloadmariadb-git-0991e19e9d38f7475390276c0557c2390e4d93c9.tar.gz
Merge branch 'bb-5.5-serg' into 5.5mariadb-5.5.49
Diffstat (limited to 'storage/xtradb/buf/buf0flu.c')
-rw-r--r--storage/xtradb/buf/buf0flu.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/storage/xtradb/buf/buf0flu.c b/storage/xtradb/buf/buf0flu.c
index 43f6a4510a2..45fe2aa3f53 100644
--- a/storage/xtradb/buf/buf0flu.c
+++ b/storage/xtradb/buf/buf0flu.c
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -2214,12 +2214,7 @@ buf_flush_stat_update(void)
ib_uint64_t lsn;
ulint n_flushed;
- lsn = log_get_lsn_nowait();
-
- /* log_get_lsn_nowait tries to get log_sys->mutex with
- mutex_enter_nowait, if this does not succeed function
- returns 0, do not use that value to update stats. */
- if (lsn == 0) {
+ if (!log_peek_lsn(&lsn)) {
return;
}