Removed empty else branch
This commit is contained in:
parent
e04c933c1f
commit
448d2ec2d5
1 changed files with 3 additions and 4 deletions
|
@ -144,6 +144,7 @@ public final class NodeManager {
|
||||||
// tx.timer.beginEvent ("getNode "+kstr);
|
// tx.timer.beginEvent ("getNode "+kstr);
|
||||||
Key key = tx.key;
|
Key key = tx.key;
|
||||||
key.recycle (dbmap, kstr);
|
key.recycle (dbmap, kstr);
|
||||||
|
|
||||||
// See if Transactor has already come across this node
|
// See if Transactor has already come across this node
|
||||||
Node node = tx.getVisitedNode (key);
|
Node node = tx.getVisitedNode (key);
|
||||||
|
|
||||||
|
@ -158,7 +159,6 @@ public final class NodeManager {
|
||||||
|
|
||||||
// The requested node isn't in the shared cache. Synchronize with key to make sure only one
|
// The requested node isn't in the shared cache. Synchronize with key to make sure only one
|
||||||
// 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);
|
key.recycle (dbmap, kstr);
|
||||||
if (node != null) {
|
if (node != null) {
|
||||||
|
@ -170,18 +170,17 @@ public final class NodeManager {
|
||||||
}
|
}
|
||||||
} // synchronized
|
} // synchronized
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Node getNode (Node home, String kstr, Relation rel) throws Exception {
|
public Node getNode (Node home, String kstr, Relation rel) throws Exception {
|
||||||
|
|
||||||
if (kstr == null)
|
if (kstr == null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue