Skip to content

Commit

Permalink
unused_alt_labels in 6-field lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yakra committed Dec 8, 2020
1 parent b6ba132 commit deead7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ r1->system->uarn_mtx.unlock();
r1->liu_mtx.lock();
r1->labels_in_use.insert(fields[2]);
r1->liu_mtx.unlock();
r1->ual_mtx.lock();
r1->unused_alt_labels.erase(fields[2]);
r1->ual_mtx.unlock();
r2->system->lniu_mtx.lock();
r2->system->listnamesinuse.insert(lookup2);
r2->system->lniu_mtx.unlock();
Expand All @@ -154,6 +157,9 @@ r2->system->uarn_mtx.unlock();
r2->liu_mtx.lock();
r2->labels_in_use.insert(fields[5]);
r2->liu_mtx.unlock();
r2->ual_mtx.lock();
r2->unused_alt_labels.erase(fields[5]);
r2->ual_mtx.unlock();
list_entries++;
// new .list lines for region split-ups
if (args->splitregion == r1->region->code || args->splitregion == r2->region->code)
Expand Down
2 changes: 2 additions & 0 deletions siteupdate/python-teresco/siteupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,9 +1521,11 @@ def __init__(self,travelername,update,el,path="../../../UserData/list_files"):
r1.system.listnamesinuse.add(lookup1)
r1.system.unusedaltroutenames.discard(lookup1)
r1.labels_in_use.add(list_label_1)
r1.unused_alt_labels.discard(list_label_1)
r2.system.listnamesinuse.add(lookup2)
r2.system.unusedaltroutenames.discard(lookup2)
r2.labels_in_use.add(list_label_2)
r2.unused_alt_labels.discard(list_label_2)
list_entries += 1
else:
self.log_entries.append("Incorrect format line (4 or 6 fields expected, found " + \
Expand Down

0 comments on commit deead7a

Please sign in to comment.