Erase more keys from binlog after database is deleted.
This commit is contained in:
parent
bc84bfecab
commit
493a9e5457
@ -4583,7 +4583,7 @@ void StickersManager::invalidate_old_featured_sticker_sets() {
|
||||
auto promises = std::move(load_old_featured_sticker_sets_queries_);
|
||||
load_old_featured_sticker_sets_queries_.clear();
|
||||
for (auto &promise : promises) {
|
||||
promise.set_error(Status::Error(400, "Trending sticker sets was updated"));
|
||||
promise.set_error(Status::Error(400, "Trending sticker sets were updated"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -352,6 +352,9 @@ Status TdDb::init_sqlite(int32 scheduler_id, const TdParameters ¶meters, DbK
|
||||
}
|
||||
if (user_version == 0) {
|
||||
binlog_pmc.erase("next_contacts_sync_date");
|
||||
binlog_pmc.erase("saved_contact_count");
|
||||
binlog_pmc.erase("old_featured_sticker_set_count");
|
||||
binlog_pmc.erase("invalidate_old_featured_sticker_sets");
|
||||
}
|
||||
binlog_pmc.force_sync({});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user