aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bench_db.cpp')
-rw-r--r--benchmark/bench_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/bench_db.cpp b/benchmark/bench_db.cpp
index 27a42d09f..96a3a1c32 100644
--- a/benchmark/bench_db.cpp
+++ b/benchmark/bench_db.cpp
@@ -95,7 +95,7 @@ class SqliteKVBench : public td::Benchmark {
td::string path = "testdb.sqlite";
td::SqliteDb::destroy(path).ignore();
if (is_encrypted) {
- td::SqliteDb::change_key(path, td::DbKey::password("cucumber"), td::DbKey::empty());
+ td::SqliteDb::change_key(path, td::DbKey::password("cucumber"), td::DbKey::empty()).ensure();
db = td::SqliteDb::open_with_key(path, td::DbKey::password("cucumber")).move_as_ok();
} else {
db = td::SqliteDb::open_with_key(path, td::DbKey::empty()).move_as_ok();