Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
srv_mbr_print(): Remove. Geometry fields are already being output
in raw form, and we do not need bogus MBR output for non-spatial
indexes.
  • Loading branch information
dr-m committed Feb 7, 2018
1 parent 4cec63a commit 5815c8e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions storage/innobase/row/row0upd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2244,25 +2244,6 @@ row_upd_store_row(
}
}

/***********************************************************//**
Print a MBR data from disk */
static
void
srv_mbr_print(const byte* data)
{
double a, b, c, d;
a = mach_double_read(data);
data += sizeof(double);
b = mach_double_read(data);
data += sizeof(double);
c = mach_double_read(data);
data += sizeof(double);
d = mach_double_read(data);

ib::info() << "GIS MBR INFO: " << a << " and " << b << ", " << c
<< ", " << d << "\n";
}

/***********************************************************//**
Updates a secondary index entry of a row.
@return DB_SUCCESS if operation successfully completed, else error
Expand Down Expand Up @@ -2426,8 +2407,6 @@ row_upd_sec_index_entry(
<< " of table " << index->table->name
<< " was not found on update: " << *entry
<< " at: " << rec_index_print(rec, index);
if (entry->fields[0].data)
srv_mbr_print((unsigned char*)entry->fields[0].data);
#ifdef UNIV_DEBUG
mtr_commit(&mtr);
mtr_start(&mtr);
Expand Down

0 comments on commit 5815c8e

Please sign in to comment.