Merge branch 'v0.21.x'

This commit is contained in:
Max Kellermann
2020-05-05 19:00:53 +02:00
6 changed files with 13 additions and 11 deletions

View File

@@ -448,12 +448,7 @@ SimpleDatabase::Mount(const char *local_uri, const char *storage_uri)
// TODO: update the new database instance?
try {
Mount(local_uri, std::move(db));
} catch (...) {
db->Close();
throw;
}
Mount(local_uri, std::move(db));
}
inline DatabasePtr