Closed smithsz closed 2 years ago
Iterating repository commits is not currently thread safe.
Locker.get_latest_commit
Aquire the lock when iterating repository commits in Locker.get_latest_commit, i.e.
with self.lock: commit = next(self.repo.iter_commits(paths=path, **options))
No change.
Use the Cloudant compliance CI as a test bed for any proposed changes.
Overview
Iterating repository commits is not currently thread safe.
Requirements
Locker.get_latest_commit
thread safe.Approach
Aquire the lock when iterating repository commits in
Locker.get_latest_commit
, i.e.Security and Privacy
No change.
Test Plan
Use the Cloudant compliance CI as a test bed for any proposed changes.