GP-4281 - Fixed bug that prevented the tool from going to the correct

program location when opening from a URL
This commit is contained in:
dragonmacher 2024-02-01 19:24:59 -05:00
parent fbdc01c33a
commit 2e2f5e65ec
8 changed files with 72 additions and 38 deletions

View file

@ -1911,6 +1911,7 @@ public class BufferMgr {
int bufCount = 0;
for (int id = 0; id < indexCnt; id++) {
monitor.checkCancelled();
monitor.setProgress(id);
BufferNode node = getCachedBufferNode(id);
if (node != null) {
// check nod which resides in cache
@ -1929,6 +1930,8 @@ public class BufferMgr {
}
}
monitor.initialize(indexCnt);
// write/update all non-empty buffers
try (OutputBlockStream out = LocalBufferFile.getOutputBlockStream(outFile, bufCount)) {
for (int id = 0; id < indexCnt; id++) {