Skip to content

Commit

Permalink
Merge commit '3cc96afdd18be79ca283994b608dca471bdc8db3'
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jan 12, 2025
2 parents dd6e29f + 3cc96af commit 109429a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/mmseqs/src/prefiltering/PrefilteringIndexReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,14 @@ void PrefilteringIndexReader::createIndexFile(const std::string &outDB,
writer.writeData(entriesNumPtr, 1 * sizeof(uint64_t), (keyOffset + ENTRIESNUM), SPLIT_INDX + s);
writer.alignToPageSize(SPLIT_INDX + s);

// SEQCOUNT
Debug(Debug::INFO) << "Write SEQCOUNT (" << (keyOffset + SEQCOUNT) << ")\n";
size_t tablesize = indexTable->getSize();
char *tablesizePtr = (char *) &tablesize;
writer.writeData(tablesizePtr, 1 * sizeof(size_t), (keyOffset + SEQCOUNT), SPLIT_INDX + s);
writer.alignToPageSize(SPLIT_INDX + s);
}
// SEQCOUNT
Debug(Debug::INFO) << "Write SEQCOUNT (" << (keyOffset + SEQCOUNT) << ")\n";
size_t tablesize = sequenceLookup->getSequenceCount();
char *tablesizePtr = (char *) &tablesize;
writer.writeData(tablesizePtr, 1 * sizeof(size_t), (keyOffset + SEQCOUNT), SPLIT_INDX + s);
writer.alignToPageSize(SPLIT_INDX + s);

Debug(Debug::INFO) << "Write SEQINDEXDATASIZE (" << (keyOffset + SEQINDEXDATASIZE) << ")\n";
int64_t seqindexDataSize = sequenceLookup->getDataSize();
char *seqindexDataSizePtr = (char *) &seqindexDataSize;
Expand Down

0 comments on commit 109429a

Please sign in to comment.