Skip to content

Commit

Permalink
Slowdown Symlink access by executing readlink system call
Browse files Browse the repository at this point in the history
  • Loading branch information
tapthaker committed Aug 21, 2020
1 parent 3130fae commit 5f4ca90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/tools/build-runfiles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ class RunfilesCreator {
if (symlink(target.c_str(), path.c_str()) != 0) {
PDIE("symlinking '%s' -> '%s'", path.c_str(), target.c_str());
}
// ReadLinkOrDie is just a way to slowdown the execution
// This way symlink will be accessed after sometime and hopefully
// it is available by then
// Ref: IOSDX-10713
std::string s;
ReadLinkOrDie(path, &s);
}
break;
}
Expand Down

0 comments on commit 5f4ca90

Please sign in to comment.