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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user