Commit 16408656 authored by Teng Qin's avatar Teng Qin Committed by yonghong-song

Fix BPFModule error when RW Engine is disabled (#2131)

Fix BPFModule error when RW Engine is disabled 
parent d0deb6b2
...@@ -89,7 +89,7 @@ class MyMemoryManager : public SectionMemoryManager { ...@@ -89,7 +89,7 @@ class MyMemoryManager : public SectionMemoryManager {
BPFModule::BPFModule(unsigned flags, TableStorage *ts, bool rw_engine_enabled, BPFModule::BPFModule(unsigned flags, TableStorage *ts, bool rw_engine_enabled,
const std::string &maps_ns) const std::string &maps_ns)
: flags_(flags), : flags_(flags),
rw_engine_enabled_(rw_engine_enabled), rw_engine_enabled_(rw_engine_enabled && bpf_module_rw_engine_enabled()),
used_b_loader_(false), used_b_loader_(false),
ctx_(new LLVMContext), ctx_(new LLVMContext),
id_(std::to_string((uintptr_t)this)), id_(std::to_string((uintptr_t)this)),
......
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