Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
37b704fe
Commit
37b704fe
authored
Mar 30, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implementation for data_Cleanup (still no test)
parent
ac15e0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
data.c
src/data.c
+2
-15
No files found.
src/data.c
View file @
37b704fe
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include <stdlib.h>
#include <stdlib.h>
#include <syslog.h>
#include <syslog.h>
#include <errno.h>
#include <errno.h>
#include <stddef.h>
#include "varnishevent.h"
#include "varnishevent.h"
#include "vas.h"
#include "vas.h"
...
@@ -68,24 +67,12 @@ static chunkhead_t freechunkhead;
...
@@ -68,24 +67,12 @@ static chunkhead_t freechunkhead;
static
int
lines_per_tx
=
FAKE_DEFAULT_LINES_PER_TX
;
static
int
lines_per_tx
=
FAKE_DEFAULT_LINES_PER_TX
;
#if 0
static void
free_hdrs(hdr_t *hdrs)
{
if (hdrs != NULL) {
free(hdrs->record);
free(hdrs);
}
}
#endif
static
void
static
void
data_Cleanup
(
void
)
data_Cleanup
(
void
)
{
{
for
(
int
i
=
0
;
i
<
config
.
max_data
;
i
++
)
{
/* XXX: etc. ... */
}
free
(
txn
);
free
(
txn
);
free
(
lines
);
free
(
chunks
);
free
(
bufptr
);
free
(
bufptr
);
AZ
(
pthread_mutex_destroy
(
&
freetx_lock
));
AZ
(
pthread_mutex_destroy
(
&
freetx_lock
));
AZ
(
pthread_mutex_destroy
(
&
freeline_lock
));
AZ
(
pthread_mutex_destroy
(
&
freeline_lock
));
...
...
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