diff --git a/plugins/social_network/social_network.cpp b/plugins/social_network/social_network.cpp index 611154da90..8c1fcfdbca 100644 --- a/plugins/social_network/social_network.cpp +++ b/plugins/social_network/social_network.cpp @@ -8,8 +8,13 @@ #include #include #include + +// tag_visitor creates additional tables, we don't really need them in LOW_MEM mode +#ifndef IS_LOW_MEM #include #include +#endif + #include #define CHECK_ARG_SIZE(s) \ @@ -99,8 +104,10 @@ namespace golos { void on_operation(const operation_notification ¬e){ try { /// plugins shouldn't ever throw +#ifndef IS_LOW_MEM note.op.visit(languages::operation_visitor(database(), cache_languages)); note.op.visit(tags::operation_visitor(database())); +#endif } catch (const fc::exception &e) { edump((e.to_detail_string())); } catch (...) { @@ -319,6 +326,7 @@ namespace golos { pimpl->database().post_apply_operation.connect([&](const operation_notification ¬e) { pimpl->on_operation(note); }); +#ifndef IS_LOW_MEM add_plugin_index(db); add_plugin_index(db); add_plugin_index(db); @@ -328,7 +336,7 @@ namespace golos { add_plugin_index(db); add_plugin_index(db); add_plugin_index(db); - +#endif JSON_RPC_REGISTER_API ( name() ) ; @@ -1641,4 +1649,4 @@ namespace golos { } } -} \ No newline at end of file +}