History | View | Annotate | Download (26.5 kB)
Refactor complete_read
complete_read handles now correctly the case where not all buckets areserviced. Also some basic error handling has been introduced, as well assome asserts for later review.
Fix compiler warnings
Add support in cached to return data to caller
The function responsible for this (serve_req) fills the original requestwith data from xcache.
Fix handling of size limits
Add binheap lru cache to xcache
Merge branch 'feature-cache' of https://code.grnet.gr/git/archipelago into feature-cache
Fix cached to work with xcache changes
Fix comments and add a possible assertion
Add error check for a malloc
Conflicts: xseg/peers/user/cached.c
Fix various bugs in cached.
Also add a lot of logging messages.
Code cleanups and function explanations
Parse cache_size, write_policy correctly
Update print_cached to show write policy
Add comments to mark the code flow
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
Small changes to cached peer
Improve cached design and implement some functionality
Initial cached implementation