From 9a54c2439b2fe9c8e5e1aa86e1de2bed6169004a Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 6 Apr 2018 17:45:07 +0300 Subject: [PATCH] Add debug. GitOrigin-RevId: 6c6c5c587d55c50da9b34b45ee57a330427d7b51 --- td/telegram/ContactsManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index c3a956f0c..72c5636a9 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -5170,7 +5170,11 @@ void ContactsManager::save_user_to_database_impl(User *u, UserId user_id, string void ContactsManager::on_save_user_to_database(UserId user_id, bool success) { User *u = get_user(user_id); CHECK(u != nullptr); - CHECK(u->is_being_saved); + CHECK(u->is_being_saved) << user_id << " " << u->is_saved << " " << u->is_status_saved << " " + << load_user_from_database_queries_.count(user_id) << " " << u->is_received << " " + << u->is_deleted << " " << u->is_bot << " " << u->is_changed << " " << u->need_send_update + << " " << u->is_status_changed << " " << u->is_name_changed << " " << u->is_username_changed + << " " << u->is_photo_changed << " " << u->is_outbound_link_changed; CHECK(load_user_from_database_queries_.count(user_id) == 0); u->is_being_saved = false;