Using Collection instead of GlobalCollection

Both has the same methods and characteristics except for the fact that
one is global and the other not. That can be handled by the backend.
This commit is contained in:
Felipe Zimmerle
2016-05-04 14:18:02 -03:00
parent 64c4f23a4e
commit 3062ff2aa5
14 changed files with 135 additions and 649 deletions

View File

@@ -18,6 +18,7 @@
#include "modsecurity/modsecurity.h"
#include "modsecurity/rule.h"
#include "src/collection/backend/in_memory-per_process.h"
#include "src/config.h"
#include "src/unique_id.h"
#ifdef MSC_WITH_CURL
@@ -45,6 +46,8 @@ namespace modsecurity {
*/
ModSecurity::ModSecurity()
: m_connector(""),
m_global_collection(new collection::backend::InMemoryPerProcess()),
m_ip_collection(new collection::backend::InMemoryPerProcess()),
m_logCb(NULL) {
UniqueId::uniqueId();
srand(time(NULL));