From d090330c8eb5b7ac61370e16305510e1e86cd913 Mon Sep 17 00:00:00 2001 From: Marko Kevac Date: Mon, 9 Feb 2015 12:16:04 +0300 Subject: [PATCH] fixed c_simple_example and added some comments --- examples/c_simple_example.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/c_simple_example.c b/examples/c_simple_example.c index 8340026db..fd79a6968 100644 --- a/examples/c_simple_example.c +++ b/examples/c_simple_example.c @@ -27,7 +27,8 @@ int main(int argc, char **argv) { db = rocksdb_open(options, DBPath, &err); assert(!err); - be = rocksdb_backup_engine_open(DBBackupPath, &err); + // open Backup Engine that we will use for backing up or database + be = rocksdb_backup_engine_open(options, DBBackupPath, &err); assert(!err); // Put key-value @@ -46,6 +47,7 @@ int main(int argc, char **argv) { assert(strcmp(returned_value, "value") == 0); free(returned_value); + // create new backup in a directory specified by DBBackupPath rocksdb_backup_engine_create_new_backup(be, db, &err); assert(!err);