{"action":"opened","issue":{"url":"https://api.github.com/repos/steveyen/gkvlite/issues/14","repository_url":"https://api.github.com/repos/steveyen/gkvlite","labels_url":"https://api.github.com/repos/steveyen/gkvlite/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/steveyen/gkvlite/issues/14/comments","events_url":"https://api.github.com/repos/steveyen/gkvlite/issues/14/events","html_url":"https://github.com/steveyen/gkvlite/issues/14","id":215259191,"number":14,"title":"EvictSomeItems does not count leaf node in numEvicted","user":{"login":"starius","id":920155,"avatar_url":"https://avatars3.githubusercontent.com/u/920155?v=3","gravatar_id":"","url":"https://api.github.com/users/starius","html_url":"https://github.com/starius","followers_url":"https://api.github.com/users/starius/followers","following_url":"https://api.github.com/users/starius/following{/other_user}","gists_url":"https://api.github.com/users/starius/gists{/gist_id}","starred_url":"https://api.github.com/users/starius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starius/subscriptions","organizations_url":"https://api.github.com/users/starius/orgs","repos_url":"https://api.github.com/users/starius/repos","events_url":"https://api.github.com/users/starius/events{/privacy}","received_events_url":"https://api.github.com/users/starius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-19T11:58:57Z","updated_at":"2017-03-19T11:58:57Z","closed_at":null,"body":"If I understand correctly, how it works, it should be:\r\n```diff\r\ndiff --git a/collection.go b/collection.go\r\nindex 6e92191..1a91b0c 100644\r\n--- a/collection.go\r\n+++ b/collection.go\r\n@@ -245,6 +245,7 @@ func (t *Collection) EvictSomeItems() (numEvicted uint64) {\r\n        })\r\n        if i != nil && err != nil {\r\n                t.store.ItemDecRef(t, i)\r\n+               numEvicted++\r\n        }\r\n        return numEvicted\r\n }\r\n```"}}
{"actor":{"display_login":"starius"}}