fix: do not kill a master because on an uninitialized lifetime token
This commit is contained in:
parent
9443ffbb5a
commit
e4613bcdb2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue