fix: do not kill a master because on an uninitialized lifetime token

This commit is contained in:
Evan Tschannen 2020-07-17 10:40:52 -07:00
parent 9443ffbb5a
commit e4613bcdb2
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ struct LifetimeToken {
LifetimeToken() : count(0) {}
bool isStillValid( LifetimeToken const& latestToken, bool isLatestID ) const {
return ccID == latestToken.ccID && (count >= latestToken.count || isLatestID);
return (ccID == latestToken.ccID || !latestToken.ccID.isValid()) && (count >= latestToken.count || isLatestID);
}
std::string toString() const {
return ccID.shortString() + format("#%lld", count);