Change path to backup

master
Oleksandr Anyshchenko 6 years ago
parent 21f871d211
commit bc79a73a34
  1. 2
      tests/test_backup.rs

@ -32,7 +32,7 @@ fn backup_restore() {
let value = db.get(b"k1");
assert_eq!(value.unwrap().unwrap().as_ref(), b"v1111");
{
let backup_path = "/tmp/_rust_rocksdb_backup_path";
let backup_path = "_rust_rocksdb_backup_path";
let backup_opts = BackupEngineOptions::default();
let mut backup_engine = BackupEngine::open(&backup_opts, &backup_path).unwrap();
assert!(backup_engine.create_new_backup(&db).is_ok());

Loading…
Cancel
Save