[PR #1421] [MERGED] Fix races in the log module by using syncmap #15899

Closed
opened 2025-11-02 11:57:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1421
Author: @typeless
Created: 3/31/2017
Status: Merged
Merged: 4/3/2017
Merged by: @appleboy

Base: masterHead: fix-races-by-using-syncmap


📝 Commits (1)

  • a87f98a Fix races in the log module by using syncmap

📊 Changes

5 files changed (+455 additions, -26 deletions)

View changed files

📝 modules/log/log.go (+28 -26)
vendor/golang.org/x/sync/LICENSE (+27 -0)
vendor/golang.org/x/sync/PATENTS (+22 -0)
vendor/golang.org/x/sync/syncmap/map.go (+372 -0)
📝 vendor/vendor.json (+6 -0)

📄 Description

Use syncmap instead of map + mutex locks.

Fix #1412


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1421 **Author:** [@typeless](https://github.com/typeless) **Created:** 3/31/2017 **Status:** ✅ Merged **Merged:** 4/3/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix-races-by-using-syncmap` --- ### 📝 Commits (1) - [`a87f98a`](https://github.com/go-gitea/gitea/commit/a87f98a0a90ff48c8598403cabc3a151243d1a50) Fix races in the log module by using syncmap ### 📊 Changes **5 files changed** (+455 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `modules/log/log.go` (+28 -26) ➕ `vendor/golang.org/x/sync/LICENSE` (+27 -0) ➕ `vendor/golang.org/x/sync/PATENTS` (+22 -0) ➕ `vendor/golang.org/x/sync/syncmap/map.go` (+372 -0) 📝 `vendor/vendor.json` (+6 -0) </details> ### 📄 Description Use syncmap instead of map + mutex locks. Fix #1412 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:57:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15899