Skip to content

Commit

Permalink
Issue vesoft-inc#1203 fixed the possible crash. (vesoft-inc#1204)
Browse files Browse the repository at this point in the history
The crash is caused by the use of two meaningless DCHECK in debug mode.
  • Loading branch information
monadbobo authored and dangleptr committed Nov 5, 2019
1 parent 75326df commit 7cdcc70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/graph/GoExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,7 @@ OptVariantType GoExecutor::VertexHolder::getDefaultProp(TagID tid, const std::st
}
}

DCHECK(false);
return Status::Error("Unknown tid");
return Status::Error("Unknown Vertex");
}

SupportedType GoExecutor::VertexHolder::getDefaultPropType(TagID tid,
Expand All @@ -996,7 +995,6 @@ SupportedType GoExecutor::VertexHolder::getDefaultPropType(TagID tid,
}
}

DCHECK(false);
return nebula::cpp2::SupportedType::UNKNOWN;
}

Expand Down

0 comments on commit 7cdcc70

Please sign in to comment.