Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to sync.RWMutex #10

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Switch to sync.RWMutex #10

merged 1 commit into from
Nov 11, 2023

Conversation

equinox0815
Copy link
Contributor

In order to allow atomic reloads for passwd and group files this libraries uses mutexes to prevent lookups during reloads. In the current form this also means that concurrent lookups are not possible. This change replaces sync.Mutex with sync.RWMutex which allows concurrent read access.

In order to allow atomic reloads for passwd and group files this libraries uses
mutexes to prevent lookups during reloads. In the current form this also means
that concurrent lookups are not possible. This change replaces sync.Mutex with
sync.RWMutex which allows concurrent read access.

Signed-off-by: Christian Pointner <equinox@spreadspace.org>
@tg123 tg123 merged commit c172617 into tg123:master Nov 11, 2023
5 checks passed
@equinox0815 equinox0815 deleted the topic/rwmutex branch November 11, 2023 14:15
codeboten referenced this pull request in open-telemetry/opentelemetry-collector-contrib Dec 19, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/tg123/go-htpasswd](https://togithub.com/tg123/go-htpasswd)
| `v1.2.1` -> `v1.2.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2ftg123%2fgo-htpasswd/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2ftg123%2fgo-htpasswd/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2ftg123%2fgo-htpasswd/v1.2.1/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2ftg123%2fgo-htpasswd/v1.2.1/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>tg123/go-htpasswd (github.com/tg123/go-htpasswd)</summary>

###
[`v1.2.2`](https://togithub.com/tg123/go-htpasswd/releases/tag/v1.2.2)

[Compare
Source](https://togithub.com/tg123/go-htpasswd/compare/v1.2.1...v1.2.2)

#### What's Changed

- Switch to sync.RWMutex by
[@&#8203;equinox0815](https://togithub.com/equinox0815) in
[https://github.com/tg123/go-htpasswd/pull/10](https://togithub.com/tg123/go-htpasswd/pull/10)
- Bump golang.org/x/crypto from 0.6.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/tg123/go-htpasswd/pull/11](https://togithub.com/tg123/go-htpasswd/pull/11)

#### New Contributors

- [@&#8203;equinox0815](https://togithub.com/equinox0815) made their
first contribution in
[https://github.com/tg123/go-htpasswd/pull/10](https://togithub.com/tg123/go-htpasswd/pull/10)
- [@&#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[https://github.com/tg123/go-htpasswd/pull/11](https://togithub.com/tg123/go-htpasswd/pull/11)

**Full Changelog**:
tg123/go-htpasswd@v1.2.1...v1.2.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy45My4xIiwidXBkYXRlZEluVmVyIjoiMzcuMTAzLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
cparkins referenced this pull request in AmadeusITGroup/opentelemetry-collector-contrib Jan 10, 2024
…30078)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/tg123/go-htpasswd](https://togithub.com/tg123/go-htpasswd)
| `v1.2.1` -> `v1.2.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2ftg123%2fgo-htpasswd/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2ftg123%2fgo-htpasswd/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2ftg123%2fgo-htpasswd/v1.2.1/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2ftg123%2fgo-htpasswd/v1.2.1/v1.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>tg123/go-htpasswd (github.com/tg123/go-htpasswd)</summary>

###
[`v1.2.2`](https://togithub.com/tg123/go-htpasswd/releases/tag/v1.2.2)

[Compare
Source](https://togithub.com/tg123/go-htpasswd/compare/v1.2.1...v1.2.2)

#### What's Changed

- Switch to sync.RWMutex by
[@&open-telemetry#8203;equinox0815](https://togithub.com/equinox0815) in
[https://github.com/tg123/go-htpasswd/pull/10](https://togithub.com/tg123/go-htpasswd/pull/10)
- Bump golang.org/x/crypto from 0.6.0 to 0.17.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/tg123/go-htpasswd/pull/11](https://togithub.com/tg123/go-htpasswd/pull/11)

#### New Contributors

- [@&open-telemetry#8203;equinox0815](https://togithub.com/equinox0815) made their
first contribution in
[https://github.com/tg123/go-htpasswd/pull/10](https://togithub.com/tg123/go-htpasswd/pull/10)
- [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[https://github.com/tg123/go-htpasswd/pull/11](https://togithub.com/tg123/go-htpasswd/pull/11)

**Full Changelog**:
tg123/go-htpasswd@v1.2.1...v1.2.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy45My4xIiwidXBkYXRlZEluVmVyIjoiMzcuMTAzLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants