[PR #1760] [MERGED] Routes is a map, employing safe read/writes ops #15803

Open
opened 2026-08-05 03:08:26 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1760
Author: @hurricanehrndz
Created: 3/27/2024
Status: Merged
Merged: 4/11/2024
Merged by: @lixmal

Base: mainHead: fix_1759


📝 Commits (1)

  • 8b3db73 Routes is a map, employing safe read/writes ops

📊 Changes

6 files changed (+49 additions, -11 deletions)

View changed files

📝 client/internal/engine.go (+1 -0)
📝 client/internal/peer/conn.go (+4 -1)
📝 client/internal/peer/status.go (+36 -4)
📝 client/internal/peer/status_test.go (+5 -0)
📝 client/internal/routemanager/client.go (+2 -5)
📝 client/server/server.go (+1 -1)

📄 Description

Adding a mutex to the struct although the norm, could not be used due to the state being copied around. Fixes #1759

Describe your changes

Checklist

  • [x ] Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/netbirdio/netbird/pull/1760 **Author:** [@hurricanehrndz](https://github.com/hurricanehrndz) **Created:** 3/27/2024 **Status:** ✅ Merged **Merged:** 4/11/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `main` ← **Head:** `fix_1759` --- ### 📝 Commits (1) - [`8b3db73`](https://github.com/netbirdio/netbird/commit/8b3db73cf3be05b518549fafb1be74a6f3ee7384) Routes is a map, employing safe read/writes ops ### 📊 Changes **6 files changed** (+49 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/engine.go` (+1 -0) 📝 `client/internal/peer/conn.go` (+4 -1) 📝 `client/internal/peer/status.go` (+36 -4) 📝 `client/internal/peer/status_test.go` (+5 -0) 📝 `client/internal/routemanager/client.go` (+2 -5) 📝 `client/server/server.go` (+1 -1) </details> ### 📄 Description Adding a mutex to the struct although the norm, could not be used due to the state being copied around. Fixes #1759 ## Describe your changes ## Issue ticket number and link ### Checklist - [x ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:08:26 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15803