fix store bug
@@ -247,6 +247,7 @@ impl GlobalGraph {
if labels.is_empty() {
if let Some(iter) = self.scan_vertex_iter(si, partition_id, None, condition)? {
res.push(iter);
+ }
} else {
for label_id in labels {
if let Some(iter) = self.scan_vertex_iter(si, partition_id, Some(*label_id), condition)? {
@@ -255,7 +256,6 @@ impl GlobalGraph {
}
}
}
- }
Ok(res)
}
@@ -283,6 +283,7 @@ impl GlobalGraph {
if labels.is_empty() {
if let Some(iter) = self.scan_edge_iter(si, partition_id, None, condition)? {
res.push(iter);
+ }
} else {
for label_id in labels {
if let Some(iter) = self.scan_edge_iter(si, partition_id, Some(*label_id), condition)? {
@@ -291,7 +292,6 @@ impl GlobalGraph {
}
}
}
- }
Ok(res)
}
