Fix field name and remove unused field.
GitOrigin-RevId: 81c8488f44562536a01deb365e3901b052131d54
This commit is contained in:
parent
20f821017d
commit
f041bf4cc8
|
@ -743,14 +743,14 @@ Result<FileId> FileManager::register_file(FileData data, FileLocationSource file
|
||||||
bool new_remote = false;
|
bool new_remote = false;
|
||||||
int32 remote_key = 0;
|
int32 remote_key = 0;
|
||||||
if (file_view.has_remote_location()) {
|
if (file_view.has_remote_location()) {
|
||||||
RemoteInfo info{file_view.remote_location(), file_id, file_location_source};
|
RemoteInfo info{file_view.remote_location(), file_id};
|
||||||
remote_key = remote_location_info_.add(info);
|
remote_key = remote_location_info_.add(info);
|
||||||
auto &stored_info = remote_location_info_.get(remote_key);
|
auto &stored_info = remote_location_info_.get(remote_key);
|
||||||
if (stored_info.file_id == file_id) {
|
if (stored_info.file_id_ == file_id) {
|
||||||
get_file_id_info(file_id)->pin_flag_ = true;
|
get_file_id_info(file_id)->pin_flag_ = true;
|
||||||
new_remote = true;
|
new_remote = true;
|
||||||
} else {
|
} else {
|
||||||
to_merge.push_back(stored_info.file_id);
|
to_merge.push_back(stored_info.file_id_);
|
||||||
if (stored_info.remote_ == file_view.remote_location() &&
|
if (stored_info.remote_ == file_view.remote_location() &&
|
||||||
stored_info.remote_.get_access_hash() != file_view.remote_location().get_access_hash() &&
|
stored_info.remote_.get_access_hash() != file_view.remote_location().get_access_hash() &&
|
||||||
file_location_source == FileLocationSource::FromServer) {
|
file_location_source == FileLocationSource::FromServer) {
|
||||||
|
|
|
@ -378,8 +378,7 @@ class FileManager : public FileLoadManager::Callback {
|
||||||
|
|
||||||
struct RemoteInfo {
|
struct RemoteInfo {
|
||||||
FullRemoteFileLocation remote_;
|
FullRemoteFileLocation remote_;
|
||||||
FileId file_id;
|
FileId file_id_;
|
||||||
FileLocationSource source_;
|
|
||||||
bool operator==(const RemoteInfo &other) const {
|
bool operator==(const RemoteInfo &other) const {
|
||||||
return this->remote_ == other.remote_;
|
return this->remote_ == other.remote_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user