diff --git a/storage/ndb/src/kernel/SimBlockList.cpp b/storage/ndb/src/kernel/SimBlockList.cpp index 0f0439e9773..7964acd23bf 100644 --- a/storage/ndb/src/kernel/SimBlockList.cpp +++ b/storage/ndb/src/kernel/SimBlockList.cpp @@ -78,8 +78,7 @@ SimBlockList::load(Configuration & conf){ Lgman* lg = 0; Tsman* ts = 0; - Block_context ctx = - { conf, * (Ndbd_mem_manager*)0 }; + Block_context ctx(conf, * (Ndbd_mem_manager*)0); SimulatedBlock * fs = 0; { diff --git a/storage/ndb/src/kernel/vm/SimulatedBlock.hpp b/storage/ndb/src/kernel/vm/SimulatedBlock.hpp index 477e75349eb..5901ae4da0b 100644 --- a/storage/ndb/src/kernel/vm/SimulatedBlock.hpp +++ b/storage/ndb/src/kernel/vm/SimulatedBlock.hpp @@ -77,6 +77,8 @@ typedef struct NewVar struct Block_context { + Block_context(class Configuration& cfg, class Ndbd_mem_manager& mm) + : m_config(cfg), m_mm(mm) {} class Configuration& m_config; class Ndbd_mem_manager& m_mm; };