diff --git a/arangod/RocksDBEngine/RocksDBEngine.cpp b/arangod/RocksDBEngine/RocksDBEngine.cpp index 15833e6033..41944f033c 100644 --- a/arangod/RocksDBEngine/RocksDBEngine.cpp +++ b/arangod/RocksDBEngine/RocksDBEngine.cpp @@ -1909,11 +1909,13 @@ std::unique_ptr RocksDBEngine::openExistingDatabase( view->open(); #ifdef ARANGODB_ENABLE_MAINTAINER_MODE +#ifdef USE_IRESEARCH if (iresearch::IResearchView* v = dynamic_cast(view.get())) { LOG_TOPIC(DEBUG, Logger::VIEWS) << "arangosearch view '" << v->name() << "' contains " << v->count() << " documents"; } +#endif #endif } } catch (std::exception const& ex) {