mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
path: use original sequence number of only one source is used
This commit is contained in:
parent
289cd6e10c
commit
5c6f5cfeba
1 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,7 @@ int path_init(struct path *p)
|
|||
p->enabled = 1;
|
||||
p->poll = -1;
|
||||
p->queuelen = DEFAULT_QUEUE_LENGTH;
|
||||
p->original_sequence_no = 0;
|
||||
p->original_sequence_no = -1;
|
||||
|
||||
p->state = STATE_INITIALIZED;
|
||||
|
||||
|
@ -288,6 +288,9 @@ int path_prepare(struct path *p)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (p->original_sequence_no == -1)
|
||||
p->original_sequence_no = vlist_length(&p->sources) == 1;
|
||||
|
||||
p->state = STATE_PREPARED;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue