You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have lockfree ReplicaState::GetRoleAndTerm, so LogPrefix could just use it and avoid tacking lock.
So we could avoid zoo of LogPrefix, LogPrefixUnlocked and LogPrefixThreadSafe for ReplicaState.
The text was updated successfully, but these errors were encountered:
Summary:
We already have lockfree ReplicaState::GetRoleAndTerm, so LogPrefix could just use it and avoid tacking lock.
So we could avoid zoo of LogPrefix, LogPrefixUnlocked and LogPrefixThreadSafe for ReplicaState.
Test Plan: Jenkins
Reviewers: mikhail, robert, timur
Reviewed By: timur
Subscribers: ybase, bharat
Differential Revision: https://phabricator.dev.yugabyte.com/D5707
We already have lockfree
ReplicaState::GetRoleAndTerm
, so LogPrefix could just use it and avoid tacking lock.So we could avoid zoo of LogPrefix, LogPrefixUnlocked and LogPrefixThreadSafe for ReplicaState.
The text was updated successfully, but these errors were encountered: