fix(build): move EstimateBackupSize to platform-independent file
Some checks failed
CI/CD / Test (push) Failing after 4s
CI/CD / Generate SBOM (push) Has been skipped
CI/CD / Lint (push) Failing after 4s
CI/CD / Build (darwin-amd64) (push) Has been skipped
CI/CD / Build (linux-amd64) (push) Has been skipped
CI/CD / Build (darwin-arm64) (push) Has been skipped
CI/CD / Build (linux-arm64) (push) Has been skipped
CI/CD / Release (push) Has been skipped
CI/CD / Build & Push Docker Image (push) Has been skipped
CI/CD / Mirror to GitHub (push) Has been skipped
Some checks failed
CI/CD / Test (push) Failing after 4s
CI/CD / Generate SBOM (push) Has been skipped
CI/CD / Lint (push) Failing after 4s
CI/CD / Build (darwin-amd64) (push) Has been skipped
CI/CD / Build (linux-amd64) (push) Has been skipped
CI/CD / Build (darwin-arm64) (push) Has been skipped
CI/CD / Build (linux-arm64) (push) Has been skipped
CI/CD / Release (push) Has been skipped
CI/CD / Build & Push Docker Image (push) Has been skipped
CI/CD / Mirror to GitHub (push) Has been skipped
Fixes Windows, OpenBSD, and NetBSD builds by extracting EstimateBackupSize from disk_check.go (which has build tags excluding those platforms) to a new estimate.go file.
This commit is contained in:
@@ -77,18 +77,18 @@ func TestEvent(t *testing.T) {
|
||||
|
||||
func TestConfig(t *testing.T) {
|
||||
cfg := Config{
|
||||
Host: "localhost",
|
||||
Port: 3306,
|
||||
User: "repl",
|
||||
Password: "secret",
|
||||
ServerID: 99999,
|
||||
Flavor: "mysql",
|
||||
BatchMaxEvents: 1000,
|
||||
BatchMaxBytes: 10 * 1024 * 1024,
|
||||
BatchMaxWait: time.Second,
|
||||
Host: "localhost",
|
||||
Port: 3306,
|
||||
User: "repl",
|
||||
Password: "secret",
|
||||
ServerID: 99999,
|
||||
Flavor: "mysql",
|
||||
BatchMaxEvents: 1000,
|
||||
BatchMaxBytes: 10 * 1024 * 1024,
|
||||
BatchMaxWait: time.Second,
|
||||
CheckpointEnabled: true,
|
||||
CheckpointFile: "/var/lib/dbbackup/checkpoint",
|
||||
UseGTID: true,
|
||||
UseGTID: true,
|
||||
}
|
||||
|
||||
if cfg.Host != "localhost" {
|
||||
|
||||
Reference in New Issue
Block a user