mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
remove destructor, close environment only once
This commit is contained in:
parent
1fa95ec2e8
commit
3b50b2634b
@ -40,11 +40,6 @@ namespace backend {
|
||||
LMDB::LMDB(std::string name) :
|
||||
Collection(name), m_env(NULL), isOpen(false) {}
|
||||
|
||||
|
||||
LMDB::~LMDB() {
|
||||
mdb_env_close(m_env);
|
||||
}
|
||||
|
||||
int LMDB::txn_begin(unsigned int flags, MDB_txn **ret) {
|
||||
if (!isOpen) {
|
||||
MDBEnvProvider* provider = MDBEnvProvider::GetInstance();
|
||||
|
@ -99,7 +99,6 @@ class LMDB :
|
||||
public Collection {
|
||||
public:
|
||||
explicit LMDB(std::string name);
|
||||
~LMDB();
|
||||
void store(std::string key, std::string value) override;
|
||||
|
||||
bool storeOrUpdateFirst(const std::string &key,
|
||||
|
Loading…
x
Reference in New Issue
Block a user