Fix updating of last_successful_force_reupload_time_.

GitOrigin-RevId: c213f39ba0bb75d541f8c007cebb4dfa81de03fc
This commit is contained in:
levlam 2020-04-11 03:56:19 +03:00
parent 97c9cdc996
commit cd7a9d7b3a

View File

@ -2358,7 +2358,9 @@ class FileManager::ForceUploadActor : public Actor {
void FileManager::on_force_reupload_success(FileId file_id) {
auto node = get_sync_file_node(file_id);
CHECK(node);
node->last_successful_force_reupload_time_ = Time::now();
if (!node->remote_.is_full_alive) { // do not update for multiple simultaneous uploads
node->last_successful_force_reupload_time_ = Time::now();
}
}
void FileManager::resume_upload(FileId file_id, std::vector<int> bad_parts, std::shared_ptr<UploadCallback> callback,