Skip to content

Fix refcount for fetch() in case of entry coming from the network - #155

Merged
diegosalvi merged 5 commits into
diennea:masterfrom
eolivelli:fix/fix-refcount-error
Feb 11, 2019
Merged

diegosalvi merged 5 commits into
diennea:masterfrom
eolivelli:fix/fix-refcount-error

Conversation

@eolivelli

Copy link
Copy Markdown
Contributor

No description provided.

@eolivelli
eolivelli force-pushed the fix/fix-refcount-error branch from a5c71a0 to 0f21d45 Compare February 10, 2019 08:44
@eolivelli
eolivelli requested a review from diegosalvi February 10, 2019 08:45
ByteBuf buffer = cacheByteArray(data);
CacheEntry newEntry = new CacheEntry(_key, System.nanoTime(), buffer, expiretime, null);
storeEntry(newEntry);
// client will be responsible of releasing the entry

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually the fix

@diegosalvi

Copy link
Copy Markdown
Contributor

CI fails :(

@diegosalvi
diegosalvi merged commit 3d568f1 into diennea:master Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants