Commit 5d857499 authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Remove unused DYN_BLOCK_FULL_FLAG

This had become unused in commit 2e814d47
or mysql/mysql-server@eca5b0fc17a5bd6d4833d35a0d08c8549dd3b5ec.
This cleanup affects mtr_buf_t::used().
parent 59e7289b
...@@ -60,7 +60,7 @@ class mtr_buf_t { ...@@ -60,7 +60,7 @@ class mtr_buf_t {
ulint used() const ulint used() const
MY_ATTRIBUTE((warn_unused_result)) MY_ATTRIBUTE((warn_unused_result))
{ {
return(static_cast<ulint>(m_used & ~DYN_BLOCK_FULL_FLAG)); return m_used;
} }
/** /**
...@@ -153,8 +153,7 @@ class mtr_buf_t { ...@@ -153,8 +153,7 @@ class mtr_buf_t {
/** Storage */ /** Storage */
byte m_data[MAX_DATA_SIZE]; byte m_data[MAX_DATA_SIZE];
/** number of data bytes used in this block; /** number of data bytes used in this block */
DYN_BLOCK_FULL_FLAG is set when the block becomes full */
uint32_t m_used; uint32_t m_used;
friend class mtr_buf_t; friend class mtr_buf_t;
......
...@@ -33,7 +33,4 @@ Created 2013-03-16 Sunny Bains ...@@ -33,7 +33,4 @@ Created 2013-03-16 Sunny Bains
this must be > MLOG_BUF_MARGIN + 30! */ this must be > MLOG_BUF_MARGIN + 30! */
#define DYN_ARRAY_DATA_SIZE 512 #define DYN_ARRAY_DATA_SIZE 512
/** Flag for dyn_block_t::used that indicates a full block */
#define DYN_BLOCK_FULL_FLAG 0x1000000UL
#endif /* dyn0types_h */ #endif /* dyn0types_h */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment