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

Fixed some 100% cpu bugs with the new SQL stuff, and fixed sqlite+db_sql_live

This commit is contained in:
Adam
2012-05-08 18:04:49 -04:00
parent 25586f3246
commit 820e4edc2b
7 changed files with 41 additions and 14 deletions
+3 -1
View File
@@ -109,7 +109,6 @@ class DBSQL : public Module, public Pipe
for (unsigned i = 0; i < create.size(); ++i)
this->RunBackground(create[i]);
SQLQuery insert = this->sql->BuildInsert(this->prefix + obj->serialize_name(), obj->id, data);
this->RunBackground(insert, new ResultSQLSQLInterface(this, obj));
}
@@ -179,6 +178,9 @@ class DBSQL : public Module, public Pipe
void OnSerializableUpdate(Serializable *obj) anope_override
{
if (obj->IsTSCached())
return;
obj->UpdateTS();
this->updated_items.insert(obj);
this->Notify();
}