Skip to content

Commit

Permalink
fix upgrade bug (#3772)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
  • Loading branch information
cangfengzhs and Sophie-Xie authored Jan 20, 2022
1 parent 41e056a commit ddd95f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/db-upgrade/NebulaKeyUtilsV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ std::string NebulaKeyUtilsV3::partTagPrefix(PartitionID partId) {
}
std::string NebulaKeyUtilsV3::getVertexKey(folly::StringPiece tagKey) {
std::string key = tagKey.toString();
key[3] = static_cast<uint32_t>(kVertex);
key[0] = static_cast<uint32_t>(kVertex);
key.resize(key.size() - sizeof(TagID));
return key;
}
Expand Down

0 comments on commit ddd95f9

Please sign in to comment.