Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
applier::get_locality_id() should return an error value (or throw an exception) #320
[reported by hkaiser] [Trac time Mon Feb 20 21:33:47 2012] Rev. 292dd02 introduced:
This is not good as the returned zero refers to the AGAS locality, which is probably not the desired behavior for all use cases (even if it might be the correct behavior during the bootstrap process).
The better solution would be to introduce a sentinel value for an invalid_locality_id (i.e. ~0) and check for that value during bootstrap.