Fix various bugs in cached.
Also add a lot of logging messages.
Add more debug messages
Mark INVALID buckets as LOADING in rw_range
Also fix bucket limits and add debugging
Add peer_req to struct cached anb fix init_node
The `init_node` function problem:init_node is passed as (void *) a (struct peerd *) pointer. Thispointer was incorrectly typecasted to a (struct cached *) pointer andthen memory would be allocated from junk values, which would lead to...
Correct max_req_size argument parsing
Add print function for struct cached
Adjust custom peer usage to match its arguments
Read command-line arguments correctly
Besides write-policy, all necessary argument parsing and error checkshave been added. Also, cache_size is changed from uint32_t to uint64_tsince it was a small limit.
Implement rw_range
This function is currently used for reads, when some of the buckets areinvalid. rw_range issues requests to blocker to fill these buckets.
Fix compilation errors
View revisions
Also available in: Atom