Commit 26ff836a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Get rid of some old assumptions and simplify things correspondingly:

Move the objindex pointer and length to the segment table, having it
in the segment signatures is just a waste of disk-access on startup.

Put empty signatures at segment head, objidx and segment tail.

Align allocations to 16 bytes boundaries, for cache and hexdump
convenience.

Discard unsused segments on close.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4279 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8204cb88
This diff is collapsed.
......@@ -124,16 +124,8 @@ struct smp_sign {
struct smp_segptr {
uint64_t offset;
uint64_t length;
};
/*
* Ban description
*/
struct smp_ban {
double ttl;
uint16_t length;
uint8_t valid;
uint64_t objlist;
uint32_t nalloc;
};
/*
......@@ -147,12 +139,3 @@ struct smp_object {
struct object *ptr;
uint64_t len; /* XXX: madvise */
};
/*
* Segment
*/
struct smp_segment {
uint64_t objlist;
uint32_t nalloc;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment