Skip to content

Commit

Permalink
disable unexpected count
Browse files Browse the repository at this point in the history
  • Loading branch information
spasserby authored and tugraph committed Sep 25, 2023
1 parent b7cd9b3 commit 335335f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,18 @@ class Graph {
if (!it.IsValid()) {
int64_t count = delta;
if (count < 0) {
FMA_ERR() << "Unexpected count value, is_vertex: " << is_vertex
<< ", LabelId: " << lid << ", count: " << count;
// todo(kehuang): fix lgraph_import v2
// FMA_ERR() << "Unexpected count value, is_vertex: " << is_vertex
// << ", LabelId: " << lid << ", count: " << count;
}
meta_table_->AddKV(txn, k, Value::ConstRef(count));
} else {
int64_t count = it.GetValue().AsType<int64_t>();
count += delta;
if (count < 0) {
FMA_ERR() << "Unexpected count value, is_vertex: " << is_vertex
<< ", LabelId: " << lid << ", count: " << count;
// todo(kehuang): fix lgraph_import v2
// FMA_ERR() << "Unexpected count value, is_vertex: " << is_vertex
// << ", LabelId: " << lid << ", count: " << count;
}
it.SetValue(Value::ConstRef(count));
}
Expand Down

0 comments on commit 335335f

Please sign in to comment.