summaryrefslogtreecommitdiff
path: root/storage/innobase/include/buf0buf.h
diff options
context:
space:
mode:
authorSunny Bains <Sunny.Bains@Oracle.Com>2010-07-15 11:55:15 +1000
committerSunny Bains <Sunny.Bains@Oracle.Com>2010-07-15 11:55:15 +1000
commit17fd8dec1d122a151df0878cbaf3e2099e53b26a (patch)
tree8976c0d389202e77a6cb3af82a4fd4873b970fd1 /storage/innobase/include/buf0buf.h
parent29bde8a0ce07d5d82a8892b0742200d5fa5ac5a6 (diff)
downloadmariadb-git-17fd8dec1d122a151df0878cbaf3e2099e53b26a.tar.gz
Fix bug# 54901 assert during recovery when binlog enabled.
Remove the pure attribute from a function. The function doesn't qualify as a pure function because it has a side-effect (modifies its parameter). Add a clarifying comment to another function's declaration.
Diffstat (limited to 'storage/innobase/include/buf0buf.h')
-rw-r--r--storage/innobase/include/buf0buf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h
index 5326ca9c14f..f33ef65ddf2 100644
--- a/storage/innobase/include/buf0buf.h
+++ b/storage/innobase/include/buf0buf.h
@@ -869,7 +869,8 @@ buf_page_set_accessed(
__attribute__((nonnull));
/*********************************************************************//**
Gets the buf_block_t handle of a buffered file block if an uncompressed
-page frame exists, or NULL.
+page frame exists, or NULL. Note: even though bpage is not declared a
+const we don't update its value. It is safe to make this pure.
@return control block, or NULL */
UNIV_INLINE
buf_block_t*