From 29179ce9f3204652e21c5540222053fe844bcb9b Mon Sep 17 00:00:00 2001 From: "S.Vladykin" Date: Sun, 24 Apr 2016 19:26:55 +0300 Subject: [PATCH] ignite-db - minor --- .../cache/database/tree/BPlusTree.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/BPlusTree.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/BPlusTree.java index 58f07e7c4632a..05fa56b0fb461 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/BPlusTree.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/database/tree/BPlusTree.java @@ -632,7 +632,7 @@ public final T findOne(L row) throws IgniteCheckedException { private void doFind(Get g) throws IgniteCheckedException { try { for (;;) { // Go down with retries. - g.initOperation(); + g.init(); switch (findDown(g, g.rootId, 0L, g.rootLvl)) { case Get.RETRY: @@ -832,12 +832,12 @@ public final T remove(L row) throws IgniteCheckedException { * @return Removed row. * @throws IgniteCheckedException If failed. */ - public final T doRemove(L row, boolean ceil) throws IgniteCheckedException { + private T doRemove(L row, boolean ceil) throws IgniteCheckedException { Remove r = new Remove(row, ceil); try { for (;;) { - r.initOperation(); + r.init(); switch (removeDown(r, r.rootId, 0L, 0L, r.rootLvl)) { case Remove.RETRY: @@ -1018,7 +1018,7 @@ public final T put(T row) throws IgniteCheckedException { try { for (;;) { // Go down with retries. - p.initOperation(); + p.init(); switch (putDown(p, p.rootId, 0L, p.rootLvl)) { case Put.RETRY: @@ -1325,13 +1325,13 @@ private abstract class Get { /** */ long rmvId; - /** Starting point root level. May be outdated. Must be modified only in {@link Get#initOperation()}. */ + /** Starting point root level. May be outdated. Must be modified only in {@link Get#init()}. */ int rootLvl; - /** Starting point root ID. May be outdated. Must be modified only in {@link Get#initOperation()}. */ + /** Starting point root ID. May be outdated. Must be modified only in {@link Get#init()}. */ long rootId; - /** Meta page. Initialized by {@link Get#initOperation()}, released by {@link Get#releaseMeta()}. */ + /** Meta page. Initialized by {@link Get#init()}, released by {@link Get#releaseMeta()}. */ Page meta; /** */ @@ -1356,13 +1356,13 @@ public Get(L row) { } /** - * Initialize the given operation. + * Initialize operation. * * !!! Symmetrically with this method must be called {@link Get#releaseMeta()} in {@code finally} block. * * @throws IgniteCheckedException If failed. */ - final void initOperation() throws IgniteCheckedException { + final void init() throws IgniteCheckedException { if (meta == null) meta = page(metaPageId);