[PR #2646] [MERGED] Add checkpoint handling in CloseDB function #5222

Closed
opened 2026-10-31 20:45:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2646
Author: @izzzzzi
Created: 1/21/2025
Status: ✅ Merged
Merged: 1/21/2025
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (3)

  • 4dce28d Enhance database initialization in db.go
  • 8931204 Add checkpoint handling in CloseDB function
  • 46ed1b3 Merge branch 'MHSanaei:main' into main

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 database/db.go (+5 -0)

📄 Description

This update enhances the CloseDB function by introducing a checkpoint handling mechanism using the Checkpoint function. The checkpoint ensures that all changes from the Write-Ahead Logging (WAL) file are written back to the main SQLite database file before closing the database connection.


🔄 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/MHSanaei/3x-ui/pull/2646 **Author:** [@izzzzzi](https://github.com/izzzzzi) **Created:** 1/21/2025 **Status:** ✅ Merged **Merged:** 1/21/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`4dce28d`](https://github.com/MHSanaei/3x-ui/commit/4dce28dfb1e643cf4eb5ce1707c075b71ac00f02) Enhance database initialization in db.go - [`8931204`](https://github.com/MHSanaei/3x-ui/commit/89312045a6888feb99a7230478767a39edb5f83c) Add checkpoint handling in CloseDB function - [`46ed1b3`](https://github.com/MHSanaei/3x-ui/commit/46ed1b3a1661791a51aae85818c4c7a2f87ba3ed) Merge branch 'MHSanaei:main' into main ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `database/db.go` (+5 -0) </details> ### 📄 Description This update enhances the `CloseDB` function by introducing a checkpoint handling mechanism using the `Checkpoint` function. The checkpoint ensures that all changes from the Write-Ahead Logging (WAL) file are written back to the main SQLite database file before closing the database connection. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:45:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5222
No description provided.