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

use datapool for slab data storage #3

Merged

Conversation

michalbiesek
Copy link

@michalbiesek michalbiesek commented May 23, 2019

Recreate slab after restart solution will be done in other PR


This change is Reviewable

@michalbiesek michalbiesek changed the title use datapool for slab data storage [WIP]use datapool for slab data storage May 23, 2019
@michalbiesek michalbiesek force-pushed the feat-use-pmem-in-slab-first-patch branch 2 times, most recently from dbc814f to f63334b Compare May 27, 2019 09:05
@michalbiesek michalbiesek changed the title [WIP]use datapool for slab data storage use datapool for slab data storage May 27, 2019
@@ -204,6 +211,10 @@ _slab_heapinfo_setup(void)
log_info("pre-allocated %zu bytes for %"PRIu32" slabs",
slab_mem, heapinfo.max_nslab);
}
Copy link
Member

Choose a reason for hiding this comment

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

} else if {

Copy link
Author

Choose a reason for hiding this comment

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

Done

To enable durable storage, provide a path to a file in "slab_datapol"
config option. If no file is provided, the
datapool falls back to shared memory.
@michalbiesek michalbiesek force-pushed the feat-use-pmem-in-slab-first-patch branch from f63334b to 0759e52 Compare May 27, 2019 13:41
@michalbiesek michalbiesek merged commit 2020b4e into pmem:master May 27, 2019
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.

3 participants