minor formatting tweaks
This commit is contained in:
parent
c469170727
commit
f6b20d916a
1 changed files with 6 additions and 2 deletions
|
@ -160,6 +160,7 @@ public final class NodeManager {
|
||||||
// version is fetched from the database.
|
// version is fetched from the database.
|
||||||
|
|
||||||
node = getNodeByKey (db, tx.txn, kstr, dbmap);
|
node = getNodeByKey (db, tx.txn, kstr, dbmap);
|
||||||
|
key.recycle (dbmap, kstr);
|
||||||
if (node != null) {
|
if (node != null) {
|
||||||
synchronized (cache) {
|
synchronized (cache) {
|
||||||
Node oldnode = (Node) cache.put (node.getKey (), node);
|
Node oldnode = (Node) cache.put (node.getKey (), node);
|
||||||
|
@ -173,9 +174,11 @@ public final class NodeManager {
|
||||||
// cache hit
|
// cache hit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node != null)
|
if (node != null) {
|
||||||
tx.visitCleanNode (key.duplicate(), node);
|
tx.visitCleanNode (key.duplicate(), node);
|
||||||
|
}
|
||||||
// tx.timer.endEvent ("getNode "+kstr);
|
// tx.timer.endEvent ("getNode "+kstr);
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,8 +266,9 @@ public final class NodeManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node != null)
|
if (node != null) {
|
||||||
tx.visitCleanNode (key.duplicate(), node);
|
tx.visitCleanNode (key.duplicate(), node);
|
||||||
|
}
|
||||||
|
|
||||||
// tx.timer.endEvent ("getNode "+kstr);
|
// tx.timer.endEvent ("getNode "+kstr);
|
||||||
return node;
|
return node;
|
||||||
|
|
Loading…
Add table
Reference in a new issue