Skip to content

Commit e007ce3

Browse files
committed
Fix renamedbkeys not preserving _mapping taxids
1 parent 760a9e1 commit e007ce3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/renamedbkeys.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ int renamedbkeys(int argc, const char **argv, const Command &command) {
124124
mappingIt = std::upper_bound(mapping.begin(), mapping.end(), val, compareToFirst);
125125
if (mappingIt != mapping.end() && mappingIt->first == val.first) {
126126
val.first = newKey;
127+
val.second = mappingIt->second;
127128
newMapping.emplace_back(val);
128129
}
129130
}

0 commit comments

Comments
 (0)