Skip to content

Commit

Permalink
Revert "add fragment locks to GetActiveLocalFragment and GetActiveFra…
Browse files Browse the repository at this point in the history
…gment (#…" (#29277)

This reverts commit 73702db.
  • Loading branch information
akshya96 authored Jan 3, 2025
1 parent a3e9777 commit ecf8d0b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vault/activity_log_testing_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,25 +265,17 @@ func (c *Core) GetActivityLog() *ActivityLog {
}

func (c *Core) GetActiveGlobalFragment() *activity.LogFragment {
c.activityLog.globalFragmentLock.RLock()
defer c.activityLog.globalFragmentLock.RUnlock()
return c.activityLog.currentGlobalFragment
}

func (c *Core) GetSecondaryGlobalFragments() []*activity.LogFragment {
c.activityLog.globalFragmentLock.RLock()
defer c.activityLog.globalFragmentLock.RUnlock()
return c.activityLog.secondaryGlobalClientFragments
}

func (c *Core) GetActiveLocalFragment() *activity.LogFragment {
c.activityLog.localFragmentLock.RLock()
defer c.activityLog.localFragmentLock.RUnlock()
return c.activityLog.localFragment
}

func (c *Core) GetActiveFragment() *activity.LogFragment {
c.activityLog.fragmentLock.RLock()
defer c.activityLog.fragmentLock.RUnlock()
return c.activityLog.fragment
}

0 comments on commit ecf8d0b

Please sign in to comment.