Skip to content

Commit cfee526

Browse files
esindrilccaffy
authored andcommitted
MGM: Lower the min transfer rate for fsck TPC repair jobs to 5MB/s - to help with >1TB files
1 parent 687eb22 commit cfee526

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

mgm/fsck/FsckEntry.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ FsckEntry::FsckEntry(eos::IFileMD::id_t fid,
6767
eos::common::FileSystem::fsid_t fsid_trg,
6868
std::set<eos::common::FileSystem::fsid_t> exclude_srcs,
6969
std::set<eos::common::FileSystem::fsid_t> exclude_dsts,
70-
bool drop_src, const std::string & app_tag,
71-
bool repair_excluded) {
72-
return std::make_shared<FsckRepairJob>(
73-
fid, fsid_src, fsid_trg, exclude_srcs, exclude_dsts, drop_src, app_tag,
74-
false, eos::common::VirtualIdentity::Root(), repair_excluded);
70+
bool drop_src, const std::string& app_tag, bool repair_excluded) {
71+
auto fsck_job = std::make_shared<FsckRepairJob>(
72+
fid, fsid_src, fsid_trg, exclude_srcs, exclude_dsts, drop_src, app_tag, false,
73+
eos::common::VirtualIdentity::Root(), repair_excluded);
74+
// Lower the min transfer rate to 5 MB/s
75+
fsck_job->SetMinTransferRate(5);
76+
return fsck_job;
7577
};
7678
}
7779

0 commit comments

Comments
 (0)