Thread (21 messages) 21 messages, 3 authors, 2016-06-15

Re: [PATCHv7.1 3/4 (amend)] gitweb: File based caching layer (from git.kernel.org)

flat view

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:50:07

Possibly related (same subject, not in this thread)

On Sun, 28 Nov 2010, Jakub Narebski wrote:
On Sat, 13 Nov 2010, Jakub Narebski wrote:
quoted
+sub cacheUpdate {
+       my ($action,$areForked) = @_;
+       my $lockingStatus;
+       my $fileData = "";
+
+       if($backgroundCache){
+               open(cacheFileBG, '>:utf8', "$fullhashpath.bg");
+               my $lockStatBG = flock(cacheFileBG,LOCK_EX|LOCK_NB);
+
+               $lockStatus = $lockStatBG;
+       }else{
+               open(cacheFile, '>:utf8', \$fullhashpath);
                                            ^^^^^^^^^^^^^^

I have made mistake with this line when moving $caching_enabled check
out of cache_fetch to its caller.

Reusing $fullhashpath variable as a *capture buffer* (it has nothing
to do with path; it is not a filename no longer) wouldn't help there.
Errr... I meant that this abuse didn't help avoiding my mistake.

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help