1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 23:06:40 +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
+3
View File
@@ -412,6 +412,9 @@ public:
// Step 2: store the new data.
for (auto *item : Serializable::GetItems())
{
if (!item->ShouldCommit())
continue; // Non-committable object.
auto *s_type = item->GetSerializableType();
if (!s_type)
continue; // Provider has been unloaded.