forked from ByteStorage/FlyDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9520b37
commit e88ead3
Showing
13 changed files
with
150 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
package wal | ||
|
||
// Options encapsulates configuration settings for the Write-Ahead Logging (WAL) | ||
// mechanism in a database. | ||
type Options struct { | ||
DirPath string | ||
// DirPath specifies the directory path where Write-Ahead Logging (WAL) files will be stored. | ||
DirPath string | ||
|
||
// FileSize determines the maximum size of individual WAL files. | ||
FileSize int64 | ||
|
||
// SaveTime defines the interval at which WAL data should be persisted from memory to disk. | ||
SaveTime int64 | ||
LogNum uint32 | ||
|
||
// LogNum specifies the number of WAL logs to retain, influencing performance and | ||
// recovery behavior. | ||
LogNum uint32 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.