Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
19ff8f18
Commit
19ff8f18
authored
Mar 31, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the VBE/VCL reference count anomaly
parent
c7e37380
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
cache_backend.c
bin/varnishd/cache_backend.c
+1
-1
cache_backend.h
bin/varnishd/cache_backend.h
+1
-1
cache_backend_cfg.c
bin/varnishd/cache_backend_cfg.c
+2
-2
No files found.
bin/varnishd/cache_backend.c
View file @
19ff8f18
...
@@ -479,7 +479,7 @@ vdi_simple_fini(const struct director *d)
...
@@ -479,7 +479,7 @@ vdi_simple_fini(const struct director *d)
CAST_OBJ_NOTNULL
(
vs
,
d
->
priv
,
VDI_SIMPLE_MAGIC
);
CAST_OBJ_NOTNULL
(
vs
,
d
->
priv
,
VDI_SIMPLE_MAGIC
);
VBP_Stop
(
vs
->
backend
,
vs
->
vrt
->
probe
);
VBP_Stop
(
vs
->
backend
,
vs
->
vrt
->
probe
);
VBE_DropRef
(
vs
->
backend
);
VBE_DropRef
Vcl
(
vs
->
backend
);
free
(
vs
->
dir
.
vcl_name
);
free
(
vs
->
dir
.
vcl_name
);
vs
->
dir
.
magic
=
0
;
vs
->
dir
.
magic
=
0
;
FREE_OBJ
(
vs
);
FREE_OBJ
(
vs
);
...
...
bin/varnishd/cache_backend.h
View file @
19ff8f18
...
@@ -143,7 +143,7 @@ struct backend *vdi_get_backend_if_simple(const struct director *d);
...
@@ -143,7 +143,7 @@ struct backend *vdi_get_backend_if_simple(const struct director *d);
/* cache_backend_cfg.c */
/* cache_backend_cfg.c */
extern
struct
lock
VBE_mtx
;
extern
struct
lock
VBE_mtx
;
void
VBE_DropRefConn
(
struct
backend
*
);
void
VBE_DropRefConn
(
struct
backend
*
);
void
VBE_DropRef
(
struct
backend
*
);
void
VBE_DropRef
Vcl
(
struct
backend
*
);
void
VBE_DropRefLocked
(
struct
backend
*
b
);
void
VBE_DropRefLocked
(
struct
backend
*
b
);
/* cache_backend_poll.c */
/* cache_backend_poll.c */
...
...
bin/varnishd/cache_backend_cfg.c
View file @
19ff8f18
...
@@ -106,7 +106,6 @@ VBE_DropRefLocked(struct backend *b)
...
@@ -106,7 +106,6 @@ VBE_DropRefLocked(struct backend *b)
assert
(
b
->
refcount
>
0
);
assert
(
b
->
refcount
>
0
);
i
=
--
b
->
refcount
;
i
=
--
b
->
refcount
;
b
->
vsc
->
vcls
--
;
Lck_Unlock
(
&
b
->
mtx
);
Lck_Unlock
(
&
b
->
mtx
);
if
(
i
>
0
)
if
(
i
>
0
)
return
;
return
;
...
@@ -125,12 +124,13 @@ VBE_DropRefLocked(struct backend *b)
...
@@ -125,12 +124,13 @@ VBE_DropRefLocked(struct backend *b)
}
}
void
void
VBE_DropRef
(
struct
backend
*
b
)
VBE_DropRef
Vcl
(
struct
backend
*
b
)
{
{
CHECK_OBJ_NOTNULL
(
b
,
BACKEND_MAGIC
);
CHECK_OBJ_NOTNULL
(
b
,
BACKEND_MAGIC
);
Lck_Lock
(
&
b
->
mtx
);
Lck_Lock
(
&
b
->
mtx
);
b
->
vsc
->
vcls
--
;
VBE_DropRefLocked
(
b
);
VBE_DropRefLocked
(
b
);
}
}
...
...
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