Close db
This commit is contained in:
parent
82b2848222
commit
59b8f2ddac
@ -132,6 +132,7 @@ public class EmbeddedDB implements RocksDBSyncAPI, Closeable {
|
|||||||
// Wait for 10 seconds
|
// Wait for 10 seconds
|
||||||
try {
|
try {
|
||||||
ops.closeAndWait(MAX_TRANSACTION_DURATION_MS);
|
ops.closeAndWait(MAX_TRANSACTION_DURATION_MS);
|
||||||
|
db.close();
|
||||||
if (path == null) {
|
if (path == null) {
|
||||||
Utils.deleteDirectory(db.getPath());
|
Utils.deleteDirectory(db.getPath());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user