Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6a8a2ca5
Commit
6a8a2ca5
authored
Dec 16, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the persistent locks dynamic
parent
d549b55f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
storage_persistent.c
bin/varnishd/storage/storage_persistent.c
+4
-1
locks.h
include/tbl/locks.h
+0
-1
No files found.
bin/varnishd/storage/storage_persistent.c
View file @
6a8a2ca5
...
@@ -57,6 +57,8 @@
...
@@ -57,6 +57,8 @@
static
struct
obj_methods
smp_oc_realmethods
;
static
struct
obj_methods
smp_oc_realmethods
;
static
struct
VSC_C_lck
*
lck_smp
;
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
/*
/*
...
@@ -702,10 +704,11 @@ static struct cli_proto debug_cmds[] = {
...
@@ -702,10 +704,11 @@ static struct cli_proto debug_cmds[] = {
void
void
SMP_Init
(
void
)
SMP_Init
(
void
)
{
{
lck_smp
=
Lck_CreateClass
(
"smp"
);
CLI_AddFuncs
(
debug_cmds
);
CLI_AddFuncs
(
debug_cmds
);
smp_oc_realmethods
=
SML_methods
;
smp_oc_realmethods
=
SML_methods
;
smp_oc_realmethods
.
sml_getobj
=
smp_oc_methods
.
sml_getobj
;
smp_oc_realmethods
.
sml_getobj
=
smp_oc_methods
.
sml_getobj
;
smp_oc_realmethods
.
objupdatemeta
=
smp_oc_methods
.
objupdatemeta
;
smp_oc_realmethods
.
objupdatemeta
=
smp_oc_methods
.
objupdatemeta
;
smp_oc_realmethods
.
objfree
=
smp_oc_methods
.
objfree
;
smp_oc_realmethods
.
objfree
=
smp_oc_methods
.
objfree
;
smp_oc_realmethods
.
objgetlru
=
smp_oc_methods
.
objgetlru
;
smp_oc_realmethods
.
objgetlru
=
smp_oc_methods
.
objgetlru
;
smp_oc_realmethods
.
objtouch
=
NULL
;
smp_oc_realmethods
.
objtouch
=
NULL
;
...
...
include/tbl/locks.h
View file @
6a8a2ca5
...
@@ -43,7 +43,6 @@ LOCK(pipestat)
...
@@ -43,7 +43,6 @@ LOCK(pipestat)
LOCK
(
sess
)
LOCK
(
sess
)
LOCK
(
sma
)
LOCK
(
sma
)
LOCK
(
smf
)
LOCK
(
smf
)
LOCK
(
smp
)
LOCK
(
vbe
)
LOCK
(
vbe
)
LOCK
(
vcapace
)
LOCK
(
vcapace
)
LOCK
(
vcl
)
LOCK
(
vcl
)
...
...
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