Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-workhorse
Commits
a462b6e9
Commit
a462b6e9
authored
Dec 04, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b61e1bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
blob.go
blob.go
+4
-5
No files found.
blob.go
View file @
a462b6e9
...
...
@@ -44,8 +44,7 @@ type AuthCacheEntry struct {
AuthReply
Tauth
int64
// in seconds XXX needed?
Nhit
int64
// how many times this entry was hit when querying
// auth cache during the last refresh period.
Nhit
int64
// how many times this entry was hit when querying auth cache during the last refresh period.
ready
chan
struct
{}
// closed when entry is ready
}
...
...
@@ -86,9 +85,10 @@ have_entry:
authReply
=
auth
.
AuthReply
auth
.
Unlock
()
// no entry - relock the cache in exclusive mode, create empty entry,
// and start filling it
}
else
{
// no entry - relock the cache in exclusive mode, create empty entry,
// and start filling it
c
.
mu
.
Lock
()
// another ex-reader could be trying to create this entry
// simultaneously with us - recheck
...
...
@@ -120,7 +120,6 @@ have_entry:
return
authReply
}
// Time period for refreshing / removing unused entires in authCache
const
authCacheRefresh
=
30
*
time
.
Second
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment