Output partial local in on_partial_download.
GitOrigin-RevId: 3f7177d704f4eaf7dec13e7bad13cb2b48da91e9
This commit is contained in:
parent
c252e9ceb5
commit
aecbbf47f9
@ -989,6 +989,12 @@ inline bool operator!=(const PartialLocalFileLocation &lhs, const PartialLocalFi
|
|||||||
return !(lhs == rhs);
|
return !(lhs == rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline StringBuilder &operator<<(StringBuilder &sb, const PartialLocalFileLocation &location) {
|
||||||
|
return sb << "[partial local location of " << location.file_type_ << " with part size " << location.part_size_
|
||||||
|
<< " and ready parts " << Bitmask(Bitmask::Decode{}, location.ready_bitmask_) << "] at \"" << location.path_
|
||||||
|
<< '"';
|
||||||
|
}
|
||||||
|
|
||||||
struct FullLocalFileLocation {
|
struct FullLocalFileLocation {
|
||||||
FileType file_type_;
|
FileType file_type_;
|
||||||
string path_;
|
string path_;
|
||||||
|
@ -2313,7 +2313,8 @@ void FileManager::on_partial_download(QueryId query_id, const PartialLocalFileLo
|
|||||||
|
|
||||||
auto file_id = query->file_id_;
|
auto file_id = query->file_id_;
|
||||||
auto file_node = get_file_node(file_id);
|
auto file_node = get_file_node(file_id);
|
||||||
LOG(DEBUG) << "Receive on_partial_download for file " << file_id;
|
LOG(DEBUG) << "Receive on_partial_download for file " << file_id << " with " << partial_local
|
||||||
|
<< ", ready_size = " << ready_size << " and size = " << size;
|
||||||
if (!file_node) {
|
if (!file_node) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user