[PR #2185] [MERGED] Fix key usage time update if the key is used in parallel for multiple operations #16277

Closed
opened 2025-11-02 12:06:33 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2185
Author: @lafriks
Created: 7/19/2017
Status: Merged
Merged: 7/20/2017
Merged by: @lunny

Base: masterHead: fix/update_public_key


📝 Commits (1)

  • 476d5b4 Fix key usage time update if the key is used in parallel for multiple operations

📊 Changes

1 file changed (+9 additions, -4 deletions)

View changed files

📝 models/ssh_key.go (+9 -4)

📄 Description

Fixes #2060

In case of MySQL update will return 0 affected rows if values has not changed and is not reliable to check record existence.


🔄 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/2185 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 7/19/2017 **Status:** ✅ Merged **Merged:** 7/20/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/update_public_key` --- ### 📝 Commits (1) - [`476d5b4`](https://github.com/go-gitea/gitea/commit/476d5b42753ad58dfa43f6672739dcc6937ab0cd) Fix key usage time update if the key is used in parallel for multiple operations ### 📊 Changes **1 file changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `models/ssh_key.go` (+9 -4) </details> ### 📄 Description Fixes #2060 In case of MySQL update will return 0 affected rows if values has not changed and is not reliable to check record existence. --- <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 12:06:33 -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#16277