Skip to content
Snippets Groups Projects
Commit ef545b5b authored by Manish R Jain's avatar Manish R Jain
Browse files

Merge pull request #26 from hackintoshrao/master

Correction to execution instruction and reference to headers
parents 1b7bf16c 75b5b8d4
Branches
No related tags found
No related merge requests found
...@@ -13,19 +13,19 @@ ...@@ -13,19 +13,19 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
* *
* compile : g++ rocks_merge.cc <path_to_rocksDB_installation>/librocksdb.so.4.1 --std=c++11 -lstdc++fs * compile : g++ merge.cc <path_to_rocksDB_installation>/librocksdb.so.4.1 --std=c++11 -lstdc++fs
* usage : ./<executable> <folder_having_rocksDB_directories_to_be_merged> <destination_folder> * usage : ./<executable> <folder_having_rocksDB_directories_to_be_merged> <destination_folder>
* *
* find the rocksdb headers here https://github.com/facebook/rocksdb/tree/master/include/rocksdb
*
*/ */
#include <fstream> #include <fstream>
#include <cstdio> #include <cstdio>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include "rocksdb/db.h" #include "rocksdb/db.h"
#include "rocksdb/options.h" #include "rocksdb/options.h"
#include <experimental/filesystem> #include <experimental/filesystem>
using namespace rocksdb; using namespace rocksdb;
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
* *
* compile : g++ rocks_merge.cc <path_to_rocksDB_installation>/librocksdb.so.4.1 --std=c++11 -lstdc++fs * compile : g++ merge_heap.cc <path_to_rocksDB_installation>/librocksdb.so.4.1 --std=c++11 -lstdc++fs
* usage : ./<executable> <folder_having_rocksDB_directories_to_be_merged> <destination_folder> * usage : ./<executable> <folder_having_rocksDB_directories_to_be_merged> <destination_folder>
* *
* rocksdb headers can be found here https://github.com/facebook/rocksdb/tree/master/include/rocksdb
*/ */
#include <fstream> #include <fstream>
...@@ -24,10 +25,8 @@ ...@@ -24,10 +25,8 @@
#include <string> #include <string>
#include <queue> #include <queue>
#include <vector> #include <vector>
#include "rocksdb/db.h" #include "rocksdb/db.h"
#include "rocksdb/options.h" #include "rocksdb/options.h"
#include <experimental/filesystem> #include <experimental/filesystem>
using namespace rocksdb; using namespace rocksdb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment