Skip to content

Commit

Permalink
Fix QuiltClassPath.HashTableFileMap.rehash() dropping paths other tha…
Browse files Browse the repository at this point in the history
…n the first path.
  • Loading branch information
AlexIIL committed Dec 11, 2024
1 parent 6d7aa9c commit e39ce88
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -834,9 +834,17 @@ private void rehash(int newSize) {
final Path toAdd;
if (hashPath instanceof ExtraDataPath) {
ExtraDataPath dataPath = (ExtraDataPath) hashPath;
extraData = dataPath.data;
if (hashPath == sub2) {
// Originally an ExtraDataPath, so re-wrap it
toAdd = dataPath.path;
extraData = dataPath.data;
} else {
// Originally an OverlappingPath, so only modify the hash path
// and put the original OverlappingPath
toAdd = sub2;
extraData = null;
}
hashPath = dataPath.path;
toAdd = hashPath;
} else {
extraData = null;
toAdd = sub2;
Expand Down

0 comments on commit e39ce88

Please sign in to comment.