Skip to content

Commit

Permalink
fix: reset rebuildGraphUriCache flag at start of graphUriRebuild to a…
Browse files Browse the repository at this point in the history
…void missed graph updates
  • Loading branch information
litvinovg authored and chenejac committed Jun 20, 2024
1 parent 0f52578 commit fcf4398
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public void run() {
DatasetWrapper dw = getDatasetWrapper();
try {
isRebuildGraphURICacheRunning = true;
rebuildGraphURICache = false;
Dataset d = dw.getDataset();
Set<String> newURIs = new HashSet<>();
d.begin(ReadWrite.READ);
Expand All @@ -324,7 +325,6 @@ public void run() {
} finally {
isRebuildGraphURICacheRunning = false;
dw.close();
rebuildGraphURICache = false;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ public void run() {
if (rebuildGraphURICache) {
try {
isRebuildGraphURICacheRunning = true;
rebuildGraphURICache = false;
Set<String> newURIs = new HashSet<>();
try {
String fastJenaQuery = "SELECT DISTINCT ?g WHERE { GRAPH ?g {} } ORDER BY ?g";
Expand All @@ -394,7 +395,6 @@ public void run() {
log.error(e, e);
} finally {
isRebuildGraphURICacheRunning = false;
rebuildGraphURICache = false;
}
}
}
Expand Down

0 comments on commit fcf4398

Please sign in to comment.