mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
Removing debug variables from non-debug builds.
sql/rpl_record.cc: Turning of declaration of debug variables in non-debug builds.
This commit is contained in:
parent
04e13b103a
commit
3f284594be
1 changed files with 4 additions and 0 deletions
|
|
@ -99,7 +99,9 @@ pack_row(TABLE *table, MY_BITMAP const* cols,
|
|||
length is stored in little-endian format, since this is the
|
||||
format used for the binlog.
|
||||
*/
|
||||
#ifndef DBUG_OFF
|
||||
const uchar *old_pack_ptr= pack_ptr;
|
||||
#endif
|
||||
pack_ptr= field->pack(pack_ptr, field->ptr + offset,
|
||||
field->max_data_length(), TRUE);
|
||||
DBUG_PRINT("debug", ("field: %s; pack_ptr: 0x%lx;"
|
||||
|
|
@ -234,7 +236,9 @@ unpack_row(Relay_log_info const *rli,
|
|||
normal unpack operation.
|
||||
*/
|
||||
uint16 const metadata= tabledef->field_metadata(i);
|
||||
#ifndef DBUG_OFF
|
||||
uchar const *const old_pack_ptr= pack_ptr;
|
||||
#endif
|
||||
pack_ptr= f->unpack(f->ptr, pack_ptr, metadata, TRUE);
|
||||
DBUG_PRINT("debug", ("field: %s; metadata: 0x%x;"
|
||||
" pack_ptr: 0x%lx; pack_ptr': 0x%lx; bytes: %d",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue