Skip to content

Commit 373b36e

Browse files
committed
reader: scrub JGF reader fetcher status value
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 ().
1 parent 4cfedfc commit 373b36e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resource/readers/resource_reader_jgf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ void fetch_helper_t::scrub ()
139139
size = -1;
140140
uniq_id = -1;
141141
exclusive = -1;
142+
status = resource_pool_t::status_t::UP;
142143
type = NULL;
143144
name = NULL;
144145
unit = NULL;

0 commit comments

Comments
 (0)