Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
b75473ba
Commit
b75473ba
authored
Jun 11, 1991
by
Per Cederqvist
Browse files
Some name changes.
parent
c4db4fc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/cache-node.h
View file @
b75473ba
...
...
@@ -15,8 +15,8 @@ typedef struct cache_node {
long
size
;
/* Size on disk. */
long
pos_b
;
/* Position to element in file B. */
long
size_b
;
/* Size in file B. */
struct
cache_node
*
lru
;
struct
cache_node
*
mru
;
struct
cache_node
*
prev
;
/* Points towards most recently used. */
struct
cache_node
*
next
;
/* Points towards least recently used. */
int
lock_cnt
;
}
Cache_node
;
...
...
@@ -42,7 +42,7 @@ typedef struct cache_node_mcb {
Cache_node
*
mru
;
Cache_node
*
lru
;
u_long
lookup_table_size
;
Cache_node
*
lookup_table
;
/* Easy to implement, but memory expensive. */
Cache_node
*
*
lookup_table
;
/* Easy to implement, but memory expensive. */
}
Cache_node_mcb
;
...
...
@@ -64,6 +64,10 @@ create_cache_node_mcb(int mcb_size,
int
table_size
);
extern
void
destruct_cache_node
(
Cache_node_mcb
*
control
,
u_long
key
);
extern
Cache_node
*
get_cache_node
(
Cache_node_mcb
*
control
,
u_long
key
);
...
...
@@ -74,6 +78,10 @@ create_cache_node (Cache_node_mcb *control,
u_long
key
);
extern
void
zero_init_cache_node
(
Cache_node_mcb
*
control
,
u_long
key
);
extern
void
set_mru
(
Cache_node_mcb
*
mcb
,
u_long
key
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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