diff options
author | Adam <Adam@anope.org> | 2016-10-16 18:50:22 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-16 18:51:58 -0400 |
commit | 095751363dd9d3576ca7b8cfd3b3efbe9ce09bba (patch) | |
tree | 036487d83d5b60385dfe2b660f3895bf1759d146 /modules/database/db_sql.cpp | |
parent | 1b67b97e93f138245bde795fb769206e9f9f0965 (diff) |
db_sql: don't update objects pending creation as it duplicates it
Diffstat (limited to 'modules/database/db_sql.cpp')
-rw-r--r-- | modules/database/db_sql.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index 15501bc5f..12fc8512f 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -210,6 +210,8 @@ class DBSQL : public Module, public Pipe { if (this->shutting_down || obj->IsTSCached()) return; + if (obj->id == 0) + return; /* object is pending creation */ obj->UpdateTS(); this->updated_items.insert(obj); this->Notify(); |