MDEV-24476 Overloaded functions dbug_print_rec break compilation in 10.3
dbug_print_rec() functions used to print data inside GDB.
This commit is contained in:
parent
f87737db04
commit
8e16c885a8
@ -38,6 +38,9 @@ Created 5/11/1994 Heikki Tuuri
|
||||
#include <string>
|
||||
#include "log.h"
|
||||
#include "my_cpu.h"
|
||||
#ifndef DBUG_OFF
|
||||
#include "rem0rec.h"
|
||||
#endif
|
||||
|
||||
/**********************************************************//**
|
||||
Returns the number of milliseconds since some epoch. The
|
||||
@ -627,4 +630,49 @@ fatal_or_error::~fatal_or_error()
|
||||
|
||||
} // namespace ib
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
static char dbug_print_buf[1024];
|
||||
|
||||
const char * dbug_print_rec(const rec_t* rec, const rec_offs* offsets)
|
||||
{
|
||||
rec_printer r(rec, offsets);
|
||||
strmake(dbug_print_buf, r.str().c_str(), sizeof(dbug_print_buf) - 1);
|
||||
return dbug_print_buf;
|
||||
}
|
||||
|
||||
const char * dbug_print_rec(const rec_t* rec, ulint info, const rec_offs* offsets)
|
||||
{
|
||||
rec_printer r(rec, info, offsets);
|
||||
strmake(dbug_print_buf, r.str().c_str(), sizeof(dbug_print_buf) - 1);
|
||||
return dbug_print_buf;
|
||||
}
|
||||
|
||||
const char * dbug_print_rec(const dtuple_t* tuple)
|
||||
{
|
||||
rec_printer r(tuple);
|
||||
strmake(dbug_print_buf, r.str().c_str(), sizeof(dbug_print_buf) - 1);
|
||||
return dbug_print_buf;
|
||||
}
|
||||
|
||||
const char * dbug_print_rec(const dfield_t* field, ulint n)
|
||||
{
|
||||
rec_printer r(field, n);
|
||||
strmake(dbug_print_buf, r.str().c_str(), sizeof(dbug_print_buf) - 1);
|
||||
return dbug_print_buf;
|
||||
}
|
||||
|
||||
const char * dbug_print_rec(const rec_t* rec, dict_index_t* index)
|
||||
{
|
||||
rec_offs offsets_[REC_OFFS_NORMAL_SIZE];
|
||||
rec_offs* offsets = offsets_;
|
||||
rec_offs_init(offsets_);
|
||||
mem_heap_t* tmp_heap = NULL;
|
||||
offsets = rec_get_offsets(rec, index, offsets, true,
|
||||
ULINT_UNDEFINED, &tmp_heap);
|
||||
rec_printer r(rec, offsets);
|
||||
strmake(dbug_print_buf, r.str().c_str(), sizeof(dbug_print_buf) - 1);
|
||||
return dbug_print_buf;
|
||||
}
|
||||
#endif /* !DBUG_OFF */
|
||||
|
||||
#endif /* !UNIV_INNOCHECKSUM */
|
||||
|
Loading…
x
Reference in New Issue
Block a user