Navigation Menu

Skip to content

Commit

Permalink
Make class name in debug print customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 23, 2012
1 parent c844cf4 commit 463e8ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -63,6 +63,9 @@
#include <mrn_external_lock.hpp>
#include <mrn_match_escalation_threshold_scope.hpp>

// for debug
#define MRN_CLASS_NAME "ha_mroonga"

#define MRN_SHORT_TEXT_SIZE (1 << 12) // 4Kbytes
#define MRN_TEXT_SIZE (1 << 16) // 64Kbytes
#define MRN_LONG_TEXT_SIZE (1 << 31) // 2Gbytes
Expand Down
3 changes: 3 additions & 0 deletions lib/mrn_index_table_name.cpp
Expand Up @@ -22,6 +22,9 @@

#include "mrn_index_table_name.hpp"

// for debug
#define MRN_CLASS_NAME "mrn::IndexTableName"

namespace mrn {
IndexTableName::IndexTableName(const char *table_name,
const char *mysql_index_name)
Expand Down
3 changes: 2 additions & 1 deletion mrn_mysql.h
Expand Up @@ -66,7 +66,8 @@
# define MRN_DBUG_ENTER_METHOD() \
char method_name[MRN_MESSAGE_BUFFER_SIZE]; \
method_name[0] = '\0'; \
strcat(method_name, "ha_mroonga::"); \
strcat(method_name, MRN_CLASS_NAME); \
strcat(method_name, "::"); \
strcat(method_name, __FUNCTION__); \
DBUG_ENTER(method_name)
#else
Expand Down

0 comments on commit 463e8ca

Please sign in to comment.