ignite-3477 - destroy checks on api exit
@@ -944,6 +944,9 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
catch (AssertionError e) {
throw new AssertionError("Assertion error on bounds: [lower=" + lower + ", upper=" + upper + "]", e);
}
+ finally {
+ checkDestroyed();
+ }
}
/**
@@ -972,6 +975,9 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
catch (AssertionError e) {
throw new AssertionError("Assertion error on lookup row: " + row, e);
}
+ finally {
+ checkDestroyed();
+ }
}
/**
@@ -1530,6 +1536,7 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
}
finally {
x.releaseAll();
+ checkDestroyed();
}
}
@@ -1684,6 +1691,7 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
}
finally {
r.releaseAll();
+ checkDestroyed();
}
}
@@ -1857,6 +1865,8 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
}
}
+ checkDestroyed();
+
return cnt;
}
@@ -1931,6 +1941,9 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
catch (AssertionError e) {
throw new AssertionError("Assertion error on row: " + row, e);
}
+ finally {
+ checkDestroyed();
+ }
}
/**
@@ -2249,17 +2262,14 @@ public abstract class BPlusTree<L, T extends L> extends DataStructure implements
/**
* @param g Other operation to copy from.
- * @return {@code this}.
*/
- final Get copyFrom(Get g) {
+ final void copyFrom(Get g) {
rmvId = g.rmvId;
rootLvl = g.rootLvl;
pageId = g.pageId;
fwdId = g.fwdId;
backId = g.backId;
shift = g.shift;
-
- return this;
}
/**
