1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 16:16:39 +02:00

Add Redis database support

This commit is contained in:
Adam
2013-05-17 23:04:18 -04:00
parent cc4a14b0ba
commit 2428264315
12 changed files with 1553 additions and 17 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ class DBMySQL : public Module, public Pipe
if (res.Get(i, "timestamp").empty())
{
clear_null = true;
std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id);
std::map<uint64_t, Serializable *>::iterator it = obj->objects.find(id);
if (it != obj->objects.end())
delete it->second; // This also removes this object from the map
}
@@ -200,7 +200,7 @@ class DBMySQL : public Module, public Pipe
data[it->first] << it->second;
Serializable *s = NULL;
std::map<unsigned int, Serializable *>::iterator it = obj->objects.find(id);
std::map<uint64_t, Serializable *>::iterator it = obj->objects.find(id);
if (it != obj->objects.end())
s = it->second;