Skip to content

Commit

Permalink
Merge pull request #26 from niklas88/fix_crash
Browse files Browse the repository at this point in the history
Thanks for this fix, you're obviously right. I guess it's a refactoring error that happened when I created the method from what has initially just chained for the only two permutations at that time: pso and pos
  • Loading branch information
Buchhold committed Dec 6, 2017
2 parents 9d5b06c + 98f5943 commit f2ce285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index/Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ void Index::scanNonFunctionalRelation(const pair<off_t, size_t>& blockOff,
} else {
LOG(TRACE) << "Special case: extra scan of follow block!\n";
pair<Id, off_t> follower;
_psoFile.read(&follower, sizeof(follower), followBlock.first);
indexFile.read(&follower, sizeof(follower), followBlock.first);
nofBytes = static_cast<size_t>(follower.second - it->second);
}
}
Expand Down Expand Up @@ -1135,4 +1135,4 @@ void Index::setKbName(const string& name) {
_sopMeta.setName(name);
_ospMeta.setName(name);
_opsMeta.setName(name);
}
}

0 comments on commit f2ce285

Please sign in to comment.