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
eb812987
Commit
eb812987
authored
May 24, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Symbol visibility reduction.
parent
5a490f05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
18 deletions
+13
-18
cache.h
bin/varnishd/cache.h
+0
-5
cache_expire.c
bin/varnishd/cache_expire.c
+1
-1
cache_pool.c
bin/varnishd/cache_pool.c
+1
-1
cache_vcl.c
bin/varnishd/cache_vcl.c
+11
-11
No files found.
bin/varnishd/cache.h
View file @
eb812987
...
...
@@ -177,7 +177,6 @@ struct http {
txt
*
hd
;
unsigned
char
*
hdf
;
#define HDF_FILTER (1 << 0)
/* Filtered by Connection */
#define HDF_COPY (1 << 1)
/* Copy this field */
unsigned
nhd
;
/* Next free hd */
};
...
...
@@ -683,7 +682,6 @@ void EXP_Set_keep(struct exp *e, double v);
double
EXP_Ttl
(
const
struct
sess
*
,
const
struct
object
*
);
double
EXP_Grace
(
const
struct
sess
*
,
const
struct
object
*
);
double
EXP_Keep
(
const
struct
sess
*
,
const
struct
object
*
);
void
EXP_Insert
(
struct
object
*
o
);
void
EXP_Inject
(
struct
objcore
*
oc
,
struct
lru
*
lru
,
double
when
);
void
EXP_Init
(
void
);
...
...
@@ -802,7 +800,6 @@ void Lck_CondWait(pthread_cond_t *cond, struct lock *lck);
#define Lck_Unlock(a) Lck__Unlock(a, __func__, __FILE__, __LINE__)
#define Lck_Trylock(a) Lck__Trylock(a, __func__, __FILE__, __LINE__)
#define Lck_AssertHeld(a) Lck__Assert(a, 1)
#define Lck_AssertNotHeld(a) Lck__Assert(a, 0)
#define LOCK(nam) extern struct vsc_lck *lck_##nam;
#include "locks.h"
...
...
@@ -816,7 +813,6 @@ void PipeSession(struct sess *sp);
/* cache_pool.c */
void
WRK_Init
(
void
);
int
WRK_Queue
(
struct
workreq
*
wrq
);
int
WRK_QueueSession
(
struct
sess
*
sp
);
void
WRK_SumStat
(
struct
worker
*
w
);
...
...
@@ -891,7 +887,6 @@ int VRY_Match(const struct sess *sp, const unsigned char *vary);
void
VCL_Init
(
void
);
void
VCL_Refresh
(
struct
VCL_conf
**
vcc
);
void
VCL_Rel
(
struct
VCL_conf
**
vcc
);
void
VCL_Get
(
struct
VCL_conf
**
vcc
);
void
VCL_Poll
(
void
);
#define VCL_MET_MAC(l,u,b) void VCL_##l##_method(struct sess *);
...
...
bin/varnishd/cache_expire.c
View file @
eb812987
...
...
@@ -97,7 +97,7 @@ EXP_ACCESS(keep, 0.,)
* by per-session limits.
*/
double
static
double
EXP_Keep
(
const
struct
sess
*
sp
,
const
struct
object
*
o
)
{
double
r
;
...
...
bin/varnishd/cache_pool.c
View file @
eb812987
...
...
@@ -239,7 +239,7 @@ wrk_thread(void *priv)
* Return zero if the request was queued, negative if it wasn't.
*/
int
static
int
WRK_Queue
(
struct
workreq
*
wrq
)
{
struct
worker
*
w
;
...
...
bin/varnishd/cache_vcl.c
View file @
eb812987
...
...
@@ -67,17 +67,7 @@ static struct vcls *vcl_active; /* protected by vcl_mtx */
/*--------------------------------------------------------------------*/
void
VCL_Refresh
(
struct
VCL_conf
**
vcc
)
{
if
(
*
vcc
==
vcl_active
->
conf
)
return
;
if
(
*
vcc
!=
NULL
)
VCL_Rel
(
vcc
);
/* XXX: optimize locking */
VCL_Get
(
vcc
);
}
void
static
void
VCL_Get
(
struct
VCL_conf
**
vcc
)
{
static
int
once
=
0
;
...
...
@@ -96,6 +86,16 @@ VCL_Get(struct VCL_conf **vcc)
Lck_Unlock
(
&
vcl_mtx
);
}
void
VCL_Refresh
(
struct
VCL_conf
**
vcc
)
{
if
(
*
vcc
==
vcl_active
->
conf
)
return
;
if
(
*
vcc
!=
NULL
)
VCL_Rel
(
vcc
);
/* XXX: optimize locking */
VCL_Get
(
vcc
);
}
void
VCL_Rel
(
struct
VCL_conf
**
vcc
)
{
...
...
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