Skip to content

Commit d40bb44

Browse files
author
Olav Sandstaa
committed
WL#7315 Optimizer cost model: main memory management of cost constants
Follow-up change: WL#7315 moved the opt_costmodel unit test from being linked into the unit tests linked without server to the unit tests that are linked with server libraries. Due to this change, the sql/opt_costmodel.cc file is no longer needed in the sqlgunitlib library.
1 parent bb2547f commit d40bb44

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sql/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ ADD_DEPENDENCIES(slave GenError)
347347
SET(SQL_GUNIT_LIB_SOURCE
348348
filesort_utils.cc
349349
mdl.cc
350-
opt_costmodel.cc
351350
sql_list.cc
352351
../sql-common/sql_string.cc
353352
thr_malloc.cc

unittest/gunit/fake_costmodel.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
#include "fake_costmodel.h"
2121

22+
Cost_model_server::~Cost_model_server()
23+
{
24+
}
25+
2226
const double Server_cost_constants::KEY_COMPARE_COST= 0.1;
2327
const double Server_cost_constants::MEMORY_TEMPTABLE_CREATE_COST= 2.0;
2428
const double Server_cost_constants::MEMORY_TEMPTABLE_ROW_COST= 0.2;

0 commit comments

Comments
 (0)