diff options
author | 2017-01-17 10:41:52 +0000 | |
---|---|---|
committer | 2017-01-17 12:16:06 +0000 | |
commit | b762afd7b3fe7d3f44444d8495b4fefab8cbc743 (patch) | |
tree | 161877148da61db0b8ced163167d316e96062c95 /src/main/cpp/blaze.cc | |
parent | f868b3e0a43be9f4466f119f13c41c906d54f004 (diff) |
Add a comment to clarify why we set the mtime on the install base.
--
PiperOrigin-RevId: 144688363
MOS_MIGRATED_REVID=144688363
Diffstat (limited to 'src/main/cpp/blaze.cc')
-rw-r--r-- | src/main/cpp/blaze.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc index 5616900462..594e9aedc5 100644 --- a/src/main/cpp/blaze.cc +++ b/src/main/cpp/blaze.cc @@ -1067,6 +1067,9 @@ static void EnsureCorrectRunningVersion(BlazeServer* server) { "failed to create installation symlink '%s'", installation_path.c_str()); } + + // Update the mtime of the install base so that cleanup tools can + // find install bases that haven't been used for a long time const time_t time_now = time(NULL); if (!blaze_util::SetMtimeMillisec(globals->options->install_base, time_now)) { |