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

Commit

Permalink
db::errormsg() is deprecated, use errormsg()
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Rudoff committed Mar 20, 2020
1 parent 86c8d01 commit 2b57ebb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapter01/pmemkv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,21 @@ int main() {

// open the key-value store, using the cmap engine
if (kv->open("cmap", std::move(cfg)) != status::OK) {
cerr << db::errormsg() << endl;
cerr << errormsg() << endl;
exit(1);
}

// add some keys and values
if (kv->put("key1", "value1") != status::OK) {
cerr << db::errormsg() << endl;
cerr << errormsg() << endl;
exit(1);
}
if (kv->put("key2", "value2") != status::OK) {
cerr << db::errormsg() << endl;
cerr << errormsg() << endl;
exit(1);
}
if (kv->put("key3", "value3") != status::OK) {
cerr << db::errormsg() << endl;
cerr << errormsg() << endl;
exit(1);
}

Expand Down

0 comments on commit 2b57ebb

Please sign in to comment.