Skip to content

Commit

Permalink
Squashed 'lib/mmseqs/' changes from 4766f92dd..a53cf9159
Browse files Browse the repository at this point in the history
a53cf9159 Fix SEQCOUNT

git-subtree-dir: lib/mmseqs
git-subtree-split: a53cf91593ebdf79be69d710297ff745aa4fdb4f
  • Loading branch information
martin-steinegger committed Jan 12, 2025
1 parent 8ee6481 commit 3cc96af
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions 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 3cc96af

Please sign in to comment.