mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 19:25:52 +08:00
Propogate errors if creating a database on an external client fails
This commit is contained in:
parent
39af41ebb7
commit
bdb740b7b8
@ -591,7 +591,7 @@ Reference<IDatabase> DLApi::createDatabase609(const char* clusterFilePath) {
|
||||
Reference<IDatabase> DLApi::createDatabase(const char* clusterFilePath) {
|
||||
if (headerVersion >= 610) {
|
||||
FdbCApi::FDBDatabase* db;
|
||||
api->createDatabase(clusterFilePath, &db);
|
||||
throwIfError(api->createDatabase(clusterFilePath, &db));
|
||||
return Reference<IDatabase>(new DLDatabase(api, db));
|
||||
} else {
|
||||
return DLApi::createDatabase609(clusterFilePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user