Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed May 22, 2023
1 parent df28ad9 commit d087eca
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1867,15 +1867,9 @@ private long processSecondaryOrSearchIndexLeft(ConditionQuery query,
*/
this.tx.updateIndex(il.id(), element, false);
}
if (this.selfCommit) {
this.tx.commit();
}
if (this.deletedByError(element, incorrectIndexFields,
incorrectPKs)) {
this.tx.updateIndex(il.id(), deletion, false);
if (this.selfCommit) {
this.tx.commit();
}
} else {
count++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected void reset() {
}

@Override
public GraphIndexTransaction indexTransaction() {
protected GraphIndexTransaction indexTransaction() {
return this.indexTx;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ public void close() {
}
}

public abstract AbstractTransaction indexTransaction();
protected abstract AbstractTransaction indexTransaction();
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public SchemaTransaction(HugeGraphParams graph, BackendStore store) {
}

@Override
public AbstractTransaction indexTransaction() {
protected AbstractTransaction indexTransaction() {
return this.indexTx;
}

Expand Down

0 comments on commit d087eca

Please sign in to comment.