Skip to content

Commit

Permalink
tiny improve
Browse files Browse the repository at this point in the history
Change-Id: Ib1d39186e1f66471a02654d3e7e29665e07f4f56
  • Loading branch information
Linary committed Nov 5, 2019
1 parent 99a6812 commit 2575366
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ private PageIds doIndexQueryOnce(IndexLabel indexLabel,

Set<Id> ids = InsertionOrderUtil.newSet();
Iterator<BackendEntry> entries = super.query(query).iterator();
while(entries.hasNext()) {
while (entries.hasNext()) {
HugeIndex index = this.serializer.readIndex(graph(), query,
entries.next());
ids.addAll(index.elementIds());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ private static void initBackend(final HugeGraph graph)
throw e;
}
break;
} while(retries-- > 0);
} while (retries-- > 0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ public static void loadData(final HugeGraph graph) {
try {
tx.rollback();
} catch (BackendException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
} finally {
Expand Down

0 comments on commit 2575366

Please sign in to comment.