From b623009619c2ab08e8a212c8a79a3bea4d82dbe9 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 23 Dec 2014 17:14:44 +0100 Subject: [PATCH] Fix compile of compact_file_example --- examples/compact_files_example.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/compact_files_example.cc b/examples/compact_files_example.cc index bf6cec262..3e7638b7e 100644 --- a/examples/compact_files_example.cc +++ b/examples/compact_files_example.cc @@ -156,14 +156,14 @@ int main() { // if background compaction is not working, write will stall // because of options.level0_stop_writes_trigger for (int i = 1000; i < 99999; ++i) { - db->Put(WriteOptions(), ToString(i), + db->Put(WriteOptions(), std::to_string(i), std::string(500, 'a' + (i % 26))); } // verify the values are still there std::string value; for (int i = 1000; i < 99999; ++i) { - db->Get(ReadOptions(), ToString(i), + db->Get(ReadOptions(), std::to_string(i), &value); assert(value == std::string(500, 'a' + (i % 26))); }