Fix misprint.

GitOrigin-RevId: 2da88c91f4a0c9b7b342a397f04bf62592c986f2
This commit is contained in:
levlam 2018-06-08 01:21:14 +03:00
parent 53f7e0cedf
commit deed26ee04

View File

@ -175,7 +175,6 @@ Status SqliteDb::change_key(CSlice path, const DbKey &new_db_key, const DbKey &o
auto new_key = db_key_to_sqlcipher_key(new_db_key);
if (old_db_key.is_empty() && !new_db_key.is_empty()) {
LOG(DEBUG) << "ENCRYPT";
// Encrypt
PerfWarningTimer timer("Encrypt sqlite database", 0.1);
auto tmp_path = path.str() + ".ecnrypted";
TRY_STATUS(destroy(tmp_path));
@ -191,7 +190,6 @@ Status SqliteDb::change_key(CSlice path, const DbKey &new_db_key, const DbKey &o
TRY_STATUS(rename(tmp_path, path));
} else if (!old_db_key.is_empty() && new_db_key.is_empty()) {
LOG(DEBUG) << "DECRYPT";
// Dectypt
PerfWarningTimer timer("Decrypt sqlite database", 0.1);
auto tmp_path = path.str() + ".ecnrypted";
TRY_STATUS(destroy(tmp_path));