[PR #1961] [MERGED] SQLite has a query timeout. Hopefully fixes most 'database locked' errors #16145

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1961
Author: @bkcsoft
Created: 6/13/2017
Status: Merged
Merged: 6/15/2017
Merged by: @bkcsoft

Base: masterHead: bkcsoft-sqlite-timeout


📝 Commits (2)

  • 1c78d80 SQLite has a query timeout. Fixes 'database locked' errors
  • 56104fe gofmt

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 conf/app.ini (+2 -0)
📝 models/models.go (+3 -1)

📄 Description

This adds a wait timeout for when the database is locked. Hopefully this should fix the database table is locked errors.


🔄 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/1961 **Author:** [@bkcsoft](https://github.com/bkcsoft) **Created:** 6/13/2017 **Status:** ✅ Merged **Merged:** 6/15/2017 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `bkcsoft-sqlite-timeout` --- ### 📝 Commits (2) - [`1c78d80`](https://github.com/go-gitea/gitea/commit/1c78d806e1626ce957d061f2770cb7418175be9e) SQLite has a query timeout. Fixes 'database locked' errors - [`56104fe`](https://github.com/go-gitea/gitea/commit/56104fe92a1ec786bcb1c804a22d9420761927a0) gofmt ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `conf/app.ini` (+2 -0) 📝 `models/models.go` (+3 -1) </details> ### 📄 Description This adds a wait timeout for when the database is locked. Hopefully this should fix the `database table is locked` errors. --- <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:03:19 -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#16145