Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Conversation

@michalbiesek
Copy link

@michalbiesek michalbiesek commented Jul 17, 2019

  • item could be reserved but not inserted yet in database e.g. during
    partial request

Ref: #42 (comment)


This change is Reviewable

@jschmieg
Copy link

jschmieg commented Aug 6, 2019

A situation when item X is reserved and item X+1 (next one) is linked will cause item X leak after startup because next_item_in_slab pointer will skip reserved item X.

@michalbiesek michalbiesek force-pushed the slab-reserve branch 2 times, most recently from 8ee2afb to 13b1714 Compare August 20, 2019 11:54
@michalbiesek
Copy link
Author

@jschmieg please look for this now

@michalbiesek michalbiesek force-pushed the slab-reserve branch 2 times, most recently from 7fbce6f to c518b2d Compare August 21, 2019 12:11
}
} else if (it->in_freeq) {
_slab_put_item_into_freeq(it, slab->id);
} else if ((it->klen ) && (it->vlen == 0)) {

Choose a reason for hiding this comment

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

(it->klen ) -> (it->klen)

Copy link
Author

Choose a reason for hiding this comment

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

I remove brackets to be inline with rest of the code

michalbiesek added 2 commits August 22, 2019 14:00
- in case of reserve item and restart db item would be release
- test_evict_refcount remove one reset where reserved item is deleted
@michalbiesek michalbiesek merged commit e84e4c7 into pmem:master Aug 22, 2019
@michalbiesek michalbiesek deleted the slab-reserve branch August 22, 2019 12:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants