Optimize check_encryption

GitOrigin-RevId: f42399a9f52e248ea88d0a44d2f2f17d5aaf2ae9
This commit is contained in:
Arseny Smirnov 2018-02-15 08:57:06 +03:00
parent 1d28119f4a
commit e45d6a386c

View File

@ -40,6 +40,7 @@ Result<EncryptionInfo> check_encryption(string path) {
}
EncryptionInfo info;
info.is_encrypted = binlog.get_info().wrong_password;
binlog.close(false /*need_sync*/);
return info;
}