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
13c713a0
Commit
13c713a0
authored
Feb 05, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop pointless template structure.
parent
4b528257
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
storage_persistent.c
bin/varnishd/storage/storage_persistent.c
+2
-2
storage_persistent.h
bin/varnishd/storage/storage_persistent.h
+2
-1
storage_persistent_silo.c
bin/varnishd/storage/storage_persistent_silo.c
+2
-7
No files found.
bin/varnishd/storage/storage_persistent.c
View file @
13c713a0
...
...
@@ -688,9 +688,9 @@ SMP_Init(void)
lck_smp
=
Lck_CreateClass
(
"smp"
);
CLI_AddFuncs
(
debug_cmds
);
smp_oc_realmethods
=
SML_methods
;
smp_oc_realmethods
.
objupdatemeta
=
smp_oc_methods
.
objupdatemeta
;
smp_oc_realmethods
.
objfree
=
smp_oc_methods
.
objfree
;
smp_oc_realmethods
.
objtouch
=
NULL
;
smp_oc_realmethods
.
objupdatemeta
=
smp_oc_objupdatemeta
;
smp_oc_realmethods
.
objfree
=
smp_oc_objfree
;
}
/*--------------------------------------------------------------------
...
...
bin/varnishd/storage/storage_persistent.h
View file @
13c713a0
...
...
@@ -307,8 +307,9 @@ 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
);
extern
const
struct
obj_methods
smp_oc_methods
;
storage_getobj_f
smp_sml_getobj
;
void
smp_oc_objupdatemeta
(
struct
worker
*
,
struct
objcore
*
);
void
smp_oc_objfree
(
struct
worker
*
,
struct
objcore
*
);
/* storage_persistent_subr.c */
...
...
bin/varnishd/storage/storage_persistent_silo.c
View file @
13c713a0
...
...
@@ -453,7 +453,7 @@ smp_sml_getobj(struct worker *wrk, struct objcore *oc)
return
(
o
);
}
static
void
__match_proto__
(
objupdatemeta_f
)
void
__match_proto__
(
objupdatemeta_f
)
smp_oc_objupdatemeta
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
struct
smp_seg
*
sg
;
...
...
@@ -478,7 +478,7 @@ smp_oc_objupdatemeta(struct worker *wrk, struct objcore *oc)
}
}
static
void
__match_proto__
(
objfree_f
)
void
__match_proto__
(
objfree_f
)
smp_oc_objfree
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
struct
smp_seg
*
sg
;
...
...
@@ -509,11 +509,6 @@ smp_oc_objfree(struct worker *wrk, struct objcore *oc)
memset
(
oc
->
stobj
,
0
,
sizeof
oc
->
stobj
);
}
const
struct
obj_methods
smp_oc_methods
=
{
.
objupdatemeta
=
smp_oc_objupdatemeta
,
.
objfree
=
smp_oc_objfree
,
};
/*--------------------------------------------------------------------*/
void
...
...
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