Skip to content

Commit 5815c8e

Browse files
committed
Remove useless code
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.
1 parent 4cec63a commit 5815c8e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

storage/innobase/row/row0upd.cc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,25 +2244,6 @@ row_upd_store_row(
22442244
}
22452245
}
22462246

2247-
/***********************************************************//**
2248-
Print a MBR data from disk */
2249-
static
2250-
void
2251-
srv_mbr_print(const byte* data)
2252-
{
2253-
double a, b, c, d;
2254-
a = mach_double_read(data);
2255-
data += sizeof(double);
2256-
b = mach_double_read(data);
2257-
data += sizeof(double);
2258-
c = mach_double_read(data);
2259-
data += sizeof(double);
2260-
d = mach_double_read(data);
2261-
2262-
ib::info() << "GIS MBR INFO: " << a << " and " << b << ", " << c
2263-
<< ", " << d << "\n";
2264-
}
2265-
22662247
/***********************************************************//**
22672248
Updates a secondary index entry of a row.
22682249
@return DB_SUCCESS if operation successfully completed, else error
@@ -2426,8 +2407,6 @@ row_upd_sec_index_entry(
24262407
<< " of table " << index->table->name
24272408
<< " was not found on update: " << *entry
24282409
<< " at: " << rec_index_print(rec, index);
2429-
if (entry->fields[0].data)
2430-
srv_mbr_print((unsigned char*)entry->fields[0].data);
24312410
#ifdef UNIV_DEBUG
24322411
mtr_commit(&mtr);
24332412
mtr_start(&mtr);

0 commit comments

Comments
 (0)