Skip to content

Commit

Permalink
Revert "fix bug (vesoft-inc#4675)"
Browse files Browse the repository at this point in the history
This reverts commit cccc014.
  • Loading branch information
critical27 committed Oct 12, 2022
1 parent 496e33f commit 804ab73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
13 changes: 2 additions & 11 deletions src/storage/admin/StatsTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ nebula::cpp2::ErrorCode StatsTask::genSubTask(GraphSpaceID spaceId,
edgetypeEdges[edge.first] = 0;
}

VertexID lastVertexId = "";

// Only stats valid vertex data, no multi version
// For example
// Vid tagId
Expand All @@ -168,15 +166,8 @@ nebula::cpp2::ErrorCode StatsTask::genSubTask(GraphSpaceID spaceId,
tagIter->next();
continue;
}

if (vId == lastVertexId) {
tagsVertices[tagId] += 1;
} else {
tagsVertices[tagId] += 1;
spaceVertices++;
lastVertexId = vId;
}

spaceVertices++;
tagsVertices[tagId] += 1;
tagIter->next();
sleepIfScannedSomeRecord(++countToSleep);
}
Expand Down
7 changes: 1 addition & 6 deletions src/storage/mutate/AddVerticesProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ void AddVerticesProcessor::doProcess(const cpp2::AddVerticesRequest& req) {
code = nebula::cpp2::ErrorCode::E_INVALID_VID;
break;
}
if (FLAGS_use_vertex_key) {
data.emplace_back(NebulaKeyUtils::vertexKey(spaceVidLen_, partId, vid), "");
}
for (auto& newTag : newTags) {
auto tagId = newTag.get_tag_id();
VLOG(3) << "PartitionID: " << partId << ", VertexID: " << vid << ", TagID: " << tagId;
Expand Down Expand Up @@ -161,9 +158,7 @@ void AddVerticesProcessor::doProcessWithIndex(const cpp2::AddVerticesRequest& re
code = nebula::cpp2::ErrorCode::E_INVALID_VID;
break;
}
if (FLAGS_use_vertex_key) {
verticeData.emplace_back(NebulaKeyUtils::vertexKey(spaceVidLen_, partId, vid));
}

for (const auto& newTag : newTags) {
auto tagId = newTag.get_tag_id();
VLOG(3) << "PartitionID: " << partId << ", VertexID: " << vid << ", TagID: " << tagId;
Expand Down

0 comments on commit 804ab73

Please sign in to comment.