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
bfde25ad
Commit
bfde25ad
authored
Mar 29, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanups.
parent
fd0ff2b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
45 deletions
+46
-45
cache_esi_deliver.c
bin/varnishd/cache_esi_deliver.c
+1
-0
stevedore.c
bin/varnishd/stevedore.c
+45
-45
No files found.
bin/varnishd/cache_esi_deliver.c
View file @
bfde25ad
...
@@ -205,6 +205,7 @@ ved_pretend_gzip(const struct sess *sp, const uint8_t *p, ssize_t l)
...
@@ -205,6 +205,7 @@ ved_pretend_gzip(const struct sess *sp, const uint8_t *p, ssize_t l)
l
-=
lx
;
l
-=
lx
;
p
+=
lx
;
p
+=
lx
;
}
}
/* buf2 is local, have to flush */
(
void
)
WRW_Flush
(
sp
->
wrk
);
(
void
)
WRW_Flush
(
sp
->
wrk
);
}
}
...
...
bin/varnishd/stevedore.c
View file @
bfde25ad
...
@@ -53,7 +53,51 @@ static VTAILQ_HEAD(, stevedore) stevedores =
...
@@ -53,7 +53,51 @@ static VTAILQ_HEAD(, stevedore) stevedores =
static
const
struct
stevedore
*
volatile
stv_next
;
static
const
struct
stevedore
*
volatile
stv_next
;
static
struct
stevedore
*
stv_transient
;
static
struct
stevedore
*
stv_transient
;
static
struct
objcore_methods
default_oc_methods
;
/*---------------------------------------------------------------------
* Default objcore methods
*/
static
struct
object
*
__match_proto__
(
getobj_f
)
default_oc_getobj
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
struct
object
*
o
;
(
void
)
wrk
;
if
(
oc
->
priv
==
NULL
)
return
(
NULL
);
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
return
(
o
);
}
static
void
default_oc_freeobj
(
struct
objcore
*
oc
)
{
struct
object
*
o
;
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
oc
->
priv
=
NULL
;
oc
->
methods
=
NULL
;
STV_Freestore
(
o
);
STV_free
(
o
->
objstore
);
}
static
struct
lru
*
default_oc_getlru
(
const
struct
objcore
*
oc
)
{
struct
object
*
o
;
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
return
(
o
->
objstore
->
stevedore
->
lru
);
}
static
struct
objcore_methods
default_oc_methods
=
{
.
getobj
=
default_oc_getobj
,
.
freeobj
=
default_oc_freeobj
,
.
getlru
=
default_oc_getlru
,
};
/*--------------------------------------------------------------------
/*--------------------------------------------------------------------
*/
*/
...
@@ -306,50 +350,6 @@ STV_Freestore(struct object *o)
...
@@ -306,50 +350,6 @@ STV_Freestore(struct object *o)
}
}
}
}
/*---------------------------------------------------------------------
* Default objcore methods
*/
static
struct
object
*
__match_proto__
(
getobj_f
)
default_oc_getobj
(
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
struct
object
*
o
;
(
void
)
wrk
;
if
(
oc
->
priv
==
NULL
)
return
(
NULL
);
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
return
(
o
);
}
static
void
default_oc_freeobj
(
struct
objcore
*
oc
)
{
struct
object
*
o
;
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
oc
->
priv
=
NULL
;
oc
->
methods
=
NULL
;
STV_Freestore
(
o
);
STV_free
(
o
->
objstore
);
}
static
struct
lru
*
default_oc_getlru
(
const
struct
objcore
*
oc
)
{
struct
object
*
o
;
CAST_OBJ_NOTNULL
(
o
,
oc
->
priv
,
OBJECT_MAGIC
);
return
(
o
->
objstore
->
stevedore
->
lru
);
}
static
struct
objcore_methods
default_oc_methods
=
{
.
getobj
=
default_oc_getobj
,
.
freeobj
=
default_oc_freeobj
,
.
getlru
=
default_oc_getlru
,
};
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
struct
storage
*
struct
storage
*
...
...
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