Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
42a844a2
Commit
42a844a2
authored
May 06, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Polish
parent
a7c18717
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
cache.h
bin/varnishd/cache.h
+1
-1
cache_ban.c
bin/varnishd/cache_ban.c
+2
-2
storage_persistent.c
bin/varnishd/storage_persistent.c
+7
-2
No files found.
bin/varnishd/cache.h
View file @
42a844a2
...
@@ -656,7 +656,7 @@ void BAN_Reload(double t0, unsigned flags, const char *ban);
...
@@ -656,7 +656,7 @@ void BAN_Reload(double t0, unsigned flags, const char *ban);
struct
ban
*
BAN_TailRef
(
void
);
struct
ban
*
BAN_TailRef
(
void
);
void
BAN_Compile
(
void
);
void
BAN_Compile
(
void
);
struct
ban
*
BAN_RefBan
(
struct
objcore
*
oc
,
double
t0
,
const
struct
ban
*
tail
);
struct
ban
*
BAN_RefBan
(
struct
objcore
*
oc
,
double
t0
,
const
struct
ban
*
tail
);
void
BAN_Deref
(
struct
ban
**
ban
);
void
BAN_
Tail
Deref
(
struct
ban
**
ban
);
/* cache_center.c [CNT] */
/* cache_center.c [CNT] */
void
CNT_Session
(
struct
sess
*
sp
);
void
CNT_Session
(
struct
sess
*
sp
);
...
...
bin/varnishd/cache_ban.c
View file @
42a844a2
...
@@ -549,11 +549,11 @@ ban_lurker(struct sess *sp, void *priv)
...
@@ -549,11 +549,11 @@ ban_lurker(struct sess *sp, void *priv)
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
* Release a reference
* Release a
tail
reference
*/
*/
void
void
BAN_Deref
(
struct
ban
**
bb
)
BAN_
Tail
Deref
(
struct
ban
**
bb
)
{
{
struct
ban
*
b
;
struct
ban
*
b
;
...
...
bin/varnishd/storage_persistent.c
View file @
42a844a2
...
@@ -303,8 +303,8 @@ smp_thread(struct sess *sp, void *priv)
...
@@ -303,8 +303,8 @@ smp_thread(struct sess *sp, void *priv)
smp_load_seg
(
sp
,
sc
,
sg
);
smp_load_seg
(
sp
,
sc
,
sg
);
sc
->
flags
|=
SMP_SC_LOADED
;
sc
->
flags
|=
SMP_SC_LOADED
;
BAN_Deref
(
&
sc
->
tailban
);
BAN_
Tail
Deref
(
&
sc
->
tailban
);
sc
->
tailban
=
NULL
;
AZ
(
sc
->
tailban
)
;
printf
(
"Silo completely loaded
\n
"
);
printf
(
"Silo completely loaded
\n
"
);
while
(
1
)
{
while
(
1
)
{
(
void
)
sleep
(
1
);
(
void
)
sleep
(
1
);
...
@@ -352,6 +352,11 @@ smp_open(const struct stevedore *st)
...
@@ -352,6 +352,11 @@ smp_open(const struct stevedore *st)
if
(
smp_open_segs
(
sc
,
&
sc
->
seg1
))
if
(
smp_open_segs
(
sc
,
&
sc
->
seg1
))
AZ
(
smp_open_segs
(
sc
,
&
sc
->
seg2
));
AZ
(
smp_open_segs
(
sc
,
&
sc
->
seg2
));
/*
* Grap a reference to the tail of the ban list, until the thread
* has loaded all objects, so we can be sure that all of our
* proto-bans survive until then.
*/
sc
->
tailban
=
BAN_TailRef
();
sc
->
tailban
=
BAN_TailRef
();
AN
(
sc
->
tailban
);
AN
(
sc
->
tailban
);
...
...
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