mirror of
https://github.com/anope/anope.git
synced 2026-06-26 06:16:38 +02:00
Remove duplicate objects from corrupt databases on database write.
This commit is contained in:
@@ -120,6 +120,12 @@ public:
|
||||
{
|
||||
if (this->sql)
|
||||
{
|
||||
if (!obj->ShouldCommit())
|
||||
{
|
||||
OnSerializableDestruct(obj);
|
||||
continue; // Non-committable object.
|
||||
}
|
||||
|
||||
Serialize::Type *s_type = obj->GetSerializableType();
|
||||
if (!s_type)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user