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

fix tutorial compliation problem #8

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions examples/tutorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ int main() {
kvdk::Status status;
kvdk::Engine *engine = nullptr;

// The KVDK instance is mounted as a directory
// /mnt/pmem0/tutorial_kvdk_example.
// Modify this path if necessary.
std::string engine_path{"/mnt/pmem0/tutorial_kvdk_example"};

// Initialize a KVDK instance.
{
kvdk::Configs engine_configs;
Expand All @@ -29,10 +34,6 @@ int main() {
engine_configs.pmem_segment_blocks = (1ull << 8);
engine_configs.num_hash_buckets = (1ull << 10);
}
// The KVDK instance is mounted as a directory
// /mnt/pmem0/tutorial_kvdk_example.
// Modify this path if necessary.
std::string engine_path{"/mnt/pmem0/tutorial_kvdk_example"};

// Purge old KVDK instance
int sink = system(std::string{"rm -rf " + engine_path + "\n"}.c_str());
Expand Down