Dispose of Cluster objects in fdb.open()

This commit is contained in:
A.J. Beamon 2017-11-17 12:21:14 -08:00
parent f657be8136
commit 3ded271153
2 changed files with 8 additions and 2 deletions

View File

@ -277,7 +277,10 @@ public class FDB {
f = new FutureCluster(Cluster_create(clusterFilePath), e);
}
Cluster c = f.join();
return c.openDatabase(e);
Database db = c.openDatabase(e);
c.dispose();
return db;
}
/**

View File

@ -277,7 +277,10 @@ public class FDB {
f = new FutureCluster(Cluster_create(clusterFilePath), e);
}
Cluster c = f.get();
return c.openDatabase(e);
Database db = c.openDatabase(e);
c.dispose();
return db;
}
/**