Statistics
| Branch: | Tag: | Revision:

root / xseg / peers / user / cached.c @ 8b803cb1

History | View | Annotate | Download (26.5 kB)

# Date Author Comment
96d105ed 03/02/2013 01:57 pm Alex Pyrgiotis

Refactor complete_read

complete_read handles now correctly the case where not all buckets are
serviced. Also some basic error handling has been introduced, as well as
some asserts for later review.

8b803cb1 03/02/2013 01:57 pm Alex Pyrgiotis

Fix compiler warnings

bffa7d32 03/01/2013 05:07 pm Alex Pyrgiotis

Add support in cached to return data to caller

The function responsible for this (serve_req) fills the original request
with data from xcache.

2992d32d 03/01/2013 02:50 pm Alex Pyrgiotis

Fix handling of size limits

a514cb77 03/01/2013 02:00 pm Filippos Giannakos

Add binheap lru cache to xcache

1d74b08e 03/01/2013 12:51 pm Filippos Giannakos

Merge branch 'feature-cache' of https://code.grnet.gr/git/archipelago into feature-cache

6911ee41 03/01/2013 12:51 pm Filippos Giannakos

Fix cached to work with xcache changes

9a0be91c 03/01/2013 10:23 am Alex Pyrgiotis

Fix comments and add a possible assertion

f3553af6 02/28/2013 03:03 pm Alex Pyrgiotis

Add error check for a malloc

e4a1bd3b 02/28/2013 02:39 pm Filippos Giannakos

Merge branch 'feature-cache' of https://code.grnet.gr/git/archipelago into feature-cache

Conflicts:
xseg/peers/user/cached.c

f22868a8 02/28/2013 02:37 pm Filippos Giannakos

Fix various bugs in cached.

Also add a lot of logging messages.

d0091461 02/28/2013 02:13 pm Alex Pyrgiotis

Code cleanups and function explanations

102e080a 02/28/2013 01:05 pm Alex Pyrgiotis

Parse cache_size, write_policy correctly

96c1ddcb 02/28/2013 01:05 pm Alex Pyrgiotis

Update print_cached to show write policy

a84277f9 02/28/2013 01:05 pm Alex Pyrgiotis

Add comments to mark the code flow

e842d87c 02/27/2013 09:20 pm Alex Pyrgiotis

Add more debug messages

7a23015b 02/27/2013 09:02 pm Alex Pyrgiotis

Mark INVALID buckets as LOADING in rw_range

Also fix bucket limits and add debugging

7640ad22 02/27/2013 06:12 pm Alex Pyrgiotis

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. This
pointer was incorrectly typecasted to a (struct cached *) pointer and
then memory would be allocated from junk values, which would lead to...

95c4b0dc 02/27/2013 06:12 pm Alex Pyrgiotis

Correct max_req_size argument parsing

53b45f01 02/27/2013 06:12 pm Alex Pyrgiotis

Add print function for struct cached

4f869efc 02/26/2013 05:43 pm Alex Pyrgiotis

Adjust custom peer usage to match its arguments

9e7908a9 02/26/2013 02:47 pm Alex Pyrgiotis

Read command-line arguments correctly

Besides write-policy, all necessary argument parsing and error checks
have been added. Also, cache_size is changed from uint32_t to uint64_t
since it was a small limit.

b34091e0 02/25/2013 07:55 pm Alex Pyrgiotis

Implement rw_range

This function is currently used for reads, when some of the buckets are
invalid. rw_range issues requests to blocker to fill these buckets.

3294fced 02/22/2013 06:25 pm Alex Pyrgiotis

Fix compilation errors

79291dfa 02/22/2013 05:32 pm Filippos Giannakos

Small changes to cached peer

a551e67c 02/22/2013 03:44 pm Filippos Giannakos

Improve cached design and implement some functionality

039cd516 02/22/2013 03:40 pm Filippos Giannakos

Initial cached implementation