Skip to content

Commit

Permalink
Revert "[backend] add some timing values to output for debugging bott…
Browse files Browse the repository at this point in the history
…lenecks"

This reverts commit 3a83726.
  • Loading branch information
mlschroe committed Jun 8, 2018
1 parent c64ef30 commit 870c271
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/backend/bs_getbinariesproxy
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ sub set_maxopen() {

sub manage_cache {
my ($prunesize, $cacheold, $cachenew) = @_;
my $manage_cache_start = time();
# get the lock
local *F;
BSUtil::lockopen(\*F, '+>>', "$cachedir/content", 1) || return;
my $manage_cache_run_start = time();
my $content;
if (-s F) {
seek(F, 0, 0);
Expand Down Expand Up @@ -140,9 +138,6 @@ sub manage_cache {
Storable::nstore($content, "$cachedir/content.new");
rename("$cachedir/content.new", "$cachedir/content") || die("rename $cachedir/content.new $cachedir/content");
close F;
my $waitlocktime = $manage_cache_run_start - $manage_cache_start;
my $managecachechecktime = time() - $manage_cache_run_start;
print "Took $managecachechecktime seconds to manage cache after waiting $waitlocktime seconds for lock\n";
}


Expand Down

0 comments on commit 870c271

Please sign in to comment.