Skip to content

Commit

Permalink
reader: scrub JGF fetcher status value
Browse files Browse the repository at this point in the history
Problem: when the JGF reader encounters a vertex with
its status specified in the JGF, the fetcher sets its
status appropriately but does not scrub the value.
This causes all subsequently fetched vertices to
inherit the value.

Add a line to reset the status to the JGF default value
in scrub ().
  • Loading branch information
milroy committed Dec 22, 2023
1 parent 03de3e6 commit 8ebed6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resource/readers/resource_reader_jgf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ void fetch_helper_t::scrub ()
size = -1;
uniq_id = -1;
exclusive = -1;
status = resource_pool_t::status_t::UP;
type = NULL;
name = NULL;
unit = NULL;
Expand Down

0 comments on commit 8ebed6d

Please sign in to comment.