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
1a30dde3
Commit
1a30dde3
authored
Feb 09, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give the persistent watcher-thread something to do
parent
2b2f723e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
storage_persistent.c
bin/varnishd/storage_persistent.c
+9
-1
storage_persistent.h
bin/varnishd/storage_persistent.h
+1
-0
storage_persistent_silo.c
bin/varnishd/storage_persistent_silo.c
+1
-1
No files found.
bin/varnishd/storage_persistent.c
View file @
1a30dde3
...
...
@@ -309,8 +309,16 @@ smp_thread(struct sess *sp, void *priv)
BAN_Deref
(
&
sc
->
tailban
);
sc
->
tailban
=
NULL
;
printf
(
"Silo completely loaded
\n
"
);
while
(
1
)
while
(
1
)
{
(
void
)
sleep
(
1
);
sg
=
VTAILQ_FIRST
(
&
sc
->
segments
);
if
(
sg
!=
NULL
&&
sg
->
sc
->
cur_seg
&&
sg
->
nobj
==
0
)
{
Lck_Lock
(
&
sc
->
mtx
);
smp_save_segs
(
sc
);
Lck_Unlock
(
&
sc
->
mtx
);
}
}
NEEDLESS_RETURN
(
NULL
);
}
...
...
bin/varnishd/storage_persistent.h
View file @
1a30dde3
...
...
@@ -185,6 +185,7 @@ void smp_load_seg(const struct sess *sp, const struct smp_sc *sc,
void
smp_new_seg
(
struct
smp_sc
*
sc
);
void
smp_close_seg
(
struct
smp_sc
*
sc
,
struct
smp_seg
*
sg
);
void
smp_init_oc
(
struct
objcore
*
oc
,
struct
smp_seg
*
sg
,
unsigned
objidx
);
void
smp_save_segs
(
struct
smp_sc
*
sc
);
/* storage_persistent_subr.c */
...
...
bin/varnishd/storage_persistent_silo.c
View file @
1a30dde3
...
...
@@ -83,7 +83,7 @@ smp_save_seg(const struct smp_sc *sc, struct smp_signctx *ctx)
smp_sync_sign
(
ctx
);
}
static
void
void
smp_save_segs
(
struct
smp_sc
*
sc
)
{
struct
smp_seg
*
sg
,
*
sg2
;
...
...
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