Skip to content

Commit f4b8fc8

Browse files
authored
fix(interactive): Avoid using label_t::max when resizing vector (#4554)
Fixes
1 parent 0a6173b commit f4b8fc8

File tree

1 file changed

+1
-1
lines changed
  • flex/engines/graph_db/runtime/common/operators/retrieve

1 file changed

+1
-1
lines changed

flex/engines/graph_db/runtime/common/operators/retrieve/get_v.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class GetV {
415415
shuffle_offset);
416416

417417
} else {
418-
std::vector<bool> labels(std::numeric_limits<label_t>::max(), false);
418+
std::vector<bool> labels(graph.schema().vertex_label_num(), false);
419419
for (auto& label : params.tables) {
420420
labels[label] = true;
421421
}

0 commit comments

Comments
 (0)