aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_db.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2019-04-28 15:00:06 +0300
committerlevlam <levlam@telegram.org>2019-04-28 15:00:06 +0300
commit16a209cef00ca307e0c5fa7d73c69af64dfdcb65 (patch)
tree606f38b1c16e6fb2866029bf0e3765f95eca7526 /benchmark/bench_db.cpp
parent45ae774bf98800a13485f16884f7aa6aa8983555 (diff)
Use some unused Status responses.
GitOrigin-RevId: b49d15a22918169b5e1a212e5858dc2e9bd2033e
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();