Skip to content

Commit 5e245d1

Browse files
copy dbtype and clear map
1 parent 4a3bb34 commit 5e245d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/pairaln.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int pairaln(int argc, const char **argv, const Command& command) {
4747
localThreads = std::max(std::min((size_t)par.threads, alnDbr.getSize()), (size_t)1);
4848
#endif
4949

50-
DBWriter resultWriter(par.db4.c_str(), par.db4Index.c_str(), localThreads, par.compressed, Parameters::DBTYPE_ALIGNMENT_RES);
50+
DBWriter resultWriter(par.db4.c_str(), par.db4Index.c_str(), localThreads, par.compressed, alnDbr.getDbtype());
5151
resultWriter.open();
5252

5353
Debug::Progress progress(alnDbr.getSize());
@@ -101,6 +101,7 @@ int pairaln(int argc, const char **argv, const Command& command) {
101101
}
102102
resultWriter.writeData(outputA.c_str(), outputA.length(), alnDbr.getDbKey(i), thread_idx);
103103
resultWriter.writeData(outputB.c_str(), outputB.length(), alnDbr.getDbKey(i+1), thread_idx);
104+
findPair.clear();
104105
}
105106
}
106107

0 commit comments

Comments
 (0)