1
0
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:
Sadie Powell
2026-04-23 18:13:20 +01:00
parent 9b8570a2ee
commit 6c7977f239
7 changed files with 38 additions and 4 deletions
+6
View File
@@ -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;