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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user