Skip to content

Commit

Permalink
fix upgrade bug (#3772)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie <[email protected]>
  • Loading branch information
cangfengzhs and Sophie-Xie committed Jan 22, 2022
1 parent 1ed55fa commit 56a4948
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 56a4948

Please sign in to comment.