Commit 2c1a8c82 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

compile the handlerton with -O3 and inline the field_offset function

git-svn-id: file:///svn/mysql/tokudb-engine/src@7925 c7de825b-a66e-492c-adef-691d508d4ae1
parent 97fd2a01
...@@ -15,7 +15,7 @@ GCOV_FLAGS = -ftest-coverage -fprofile-arcs ...@@ -15,7 +15,7 @@ GCOV_FLAGS = -ftest-coverage -fprofile-arcs
endif endif
ifeq ($(DEBUG),0) ifeq ($(DEBUG),0)
OPTFLAGS = -O2 OPTFLAGS = -O3
MYSQL_FLAGS = MYSQL_FLAGS =
CXXFLAGS = CXXFLAGS =
else else
......
...@@ -5340,7 +5340,7 @@ cleanup: ...@@ -5340,7 +5340,7 @@ cleanup:
TOKUDB_DBUG_RETURN(error); TOKUDB_DBUG_RETURN(error);
} }
ulong ha_tokudb::field_offset(Field *field) { inline ulong ha_tokudb::field_offset(Field *field) {
if (table->record[0] <= field->ptr && field->ptr < table->record[1]) if (table->record[0] <= field->ptr && field->ptr < table->record[1])
return field->offset(table->record[0]); return field->offset(table->record[0]);
assert(0); assert(0);
......
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