summaryrefslogtreecommitdiff
path: root/storage/xtradb/buf/buf0dblwr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/buf/buf0dblwr.cc')
-rw-r--r--storage/xtradb/buf/buf0dblwr.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/xtradb/buf/buf0dblwr.cc b/storage/xtradb/buf/buf0dblwr.cc
index 9323daf0076..7c7f28ddc2f 100644
--- a/storage/xtradb/buf/buf0dblwr.cc
+++ b/storage/xtradb/buf/buf0dblwr.cc
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1995, 2014, Oracle and/or its affiliates. All Rights Reserved.
-Copyright (c) 2013, 2014, SkySQL Ab. All Rights Reserved.
+Copyright (c) 2013, 2015, MariaDB Corporation. 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
@@ -391,11 +391,11 @@ buf_dblwr_init_or_load_pages(
doublewrite = read_buf + TRX_SYS_DOUBLEWRITE;
if (mach_read_from_4(read_buf + FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION) != 0) {
- fil_space_decrypt((ulint)TRX_SYS_SPACE,
- read_buf,
- UNIV_PAGE_SIZE, /* page size */
- read_buf + UNIV_PAGE_SIZE);
- doublewrite = read_buf + UNIV_PAGE_SIZE + TRX_SYS_DOUBLEWRITE;
+ byte* tmp = fil_space_decrypt((ulint)TRX_SYS_SPACE,
+ read_buf + UNIV_PAGE_SIZE,
+ UNIV_PAGE_SIZE, /* page size */
+ read_buf);
+ doublewrite = tmp + TRX_SYS_DOUBLEWRITE;
}
if (mach_read_from_4(doublewrite + TRX_SYS_DOUBLEWRITE_MAGIC)