mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix -Wunused for CMAKE_BUILD_TYPE=RelWithDebInfo
For release builds, do not declare unused variables. unpack_row(): Omit a debug-only variable from WSREP diagnostic message. create_wsrep_THD(): Fix -Wmaybe-uninitialized for the PSI_thread_key.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2007, 2013, Oracle and/or its affiliates.
|
||||
Copyright (c) 2008, 2014, SkySQL Ab.
|
||||
Copyright (c) 2008, 2019, MariaDB Corporation.
|
||||
|
||||
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
|
||||
@ -318,7 +318,7 @@ unpack_row(rpl_group_info *rgi,
|
||||
normal unpack operation.
|
||||
*/
|
||||
uint16 const metadata= tabledef->field_metadata(i);
|
||||
uchar const *const old_pack_ptr= pack_ptr;
|
||||
IF_DBUG(uchar const *const old_pack_ptr= pack_ptr;,)
|
||||
|
||||
pack_ptr= f->unpack(f->ptr, pack_ptr, row_end, metadata);
|
||||
DBUG_PRINT("debug", ("field: %s; metadata: 0x%x;"
|
||||
@ -336,10 +336,9 @@ unpack_row(rpl_group_info *rgi,
|
||||
Galera Node throws "Could not read field" error and drops out of cluster
|
||||
*/
|
||||
WSREP_WARN("ROW event unpack field: %s metadata: 0x%x;"
|
||||
" pack_ptr: %p; conv_table %p conv_field %p table %s"
|
||||
" conv_table %p conv_field %p table %s"
|
||||
" row_end: %p",
|
||||
f->field_name, metadata,
|
||||
old_pack_ptr, conv_table, conv_field,
|
||||
f->field_name, metadata, conv_table, conv_field,
|
||||
(table_found) ? "found" : "not found", row_end
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user