Commit b6a6aa5b authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-371: Enable a debug function only in debug builds

parent 7af0de9f
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. /* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
Copyright (c) 2008, 2018, MariaDB Copyright (c) 2008, 2019, MariaDB
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
...@@ -3429,6 +3429,7 @@ static bool check_vcol_forward_refs(Field *field, Virtual_column_info *vcol, ...@@ -3429,6 +3429,7 @@ static bool check_vcol_forward_refs(Field *field, Virtual_column_info *vcol,
return res; return res;
} }
#ifndef DBUG_OFF
static void print_long_unique_table(TABLE *table) static void print_long_unique_table(TABLE *table)
{ {
char buff[256]; char buff[256];
...@@ -3506,6 +3507,7 @@ static void print_long_unique_table(TABLE *table) ...@@ -3506,6 +3507,7 @@ static void print_long_unique_table(TABLE *table)
} }
(*error_handler_hook)(1, str.ptr(), ME_NOTE); (*error_handler_hook)(1, str.ptr(), ME_NOTE);
} }
#endif
/* /*
Open a table based on a TABLE_SHARE Open a table based on a TABLE_SHARE
......
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