From a53bd05ff9eac93f444b7bf8dd1607e16301ef5b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Jan 2016 18:02:32 +0000 Subject: [PATCH] Disable redis until rework is done --- src/libstat/CMakeLists.txt | 12 ++++++------ src/libstat/backends/backends.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt index 2fa16cf98..80abf9d6f 100644 --- a/src/libstat/CMakeLists.txt +++ b/src/libstat/CMakeLists.txt @@ -10,14 +10,14 @@ SET(CLASSIFIERSSRC ${CMAKE_CURRENT_SOURCE_DIR}/classifiers/bayes.c) SET(BACKENDSSRC ${CMAKE_CURRENT_SOURCE_DIR}/backends/mmaped_file.c ${CMAKE_CURRENT_SOURCE_DIR}/backends/sqlite3_backend.c) IF(ENABLE_HIREDIS MATCHES "ON") - SET(BACKENDSSRC ${BACKENDSSRC} - ${CMAKE_CURRENT_SOURCE_DIR}/backends/redis.c) + #SET(BACKENDSSRC ${BACKENDSSRC} + # ${CMAKE_CURRENT_SOURCE_DIR}/backends/redis.c) ENDIF(ENABLE_HIREDIS MATCHES "ON") SET(CACHESSRC ${CMAKE_CURRENT_SOURCE_DIR}/learn_cache/sqlite3_cache.c) - -SET(RSPAMD_STAT ${LIBSTATSRC} - ${TOKENIZERSSRC} - ${CLASSIFIERSSRC} + +SET(RSPAMD_STAT ${LIBSTATSRC} + ${TOKENIZERSSRC} + ${CLASSIFIERSSRC} ${BACKENDSSRC} ${CACHESSRC} PARENT_SCOPE) diff --git a/src/libstat/backends/backends.h b/src/libstat/backends/backends.h index da04ebbb8..44c2f13ed 100644 --- a/src/libstat/backends/backends.h +++ b/src/libstat/backends/backends.h @@ -105,7 +105,6 @@ struct rspamd_stat_backend { void rspamd_##name##_close (gpointer ctx) RSPAMD_STAT_BACKEND_DEF(mmaped_file); -RSPAMD_STAT_BACKEND_DEF(redis); RSPAMD_STAT_BACKEND_DEF(sqlite3); #endif /* BACKENDS_H_ */ -- 2.39.5