Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compaction filter: allow to pass in owned variable for Decision::Change variant #725

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

farazdagi
Copy link
Contributor

In the current implementation, reference to static variable is expected in Decision::Change variant, making it impossible to update the value based on a runtime context (what that value was holding, for example). RocksDB supports value changing, and static bound seems to be too restrictive.

@aleksuss aleksuss merged commit 5ed1043 into rust-rocksdb:master Jan 19, 2023
BusyJay pushed a commit to BusyJay/rust-rocksdb that referenced this pull request Feb 5, 2023
* support sharing statistics

Signed-off-by: tabokie <xy.tao@outlook.com>

* use reference

Signed-off-by: tabokie <xy.tao@outlook.com>

* rearrange a bit

Signed-off-by: tabokie <xy.tao@outlook.com>

* add a test

Signed-off-by: tabokie <xy.tao@outlook.com>

* fmt

Signed-off-by: tabokie <xy.tao@outlook.com>

Signed-off-by: tabokie <xy.tao@outlook.com>
aleksuss added a commit that referenced this pull request Feb 9, 2023
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.

None yet

3 participants