Skip to content

Commit b85e41e

Browse files
jdobespsegedy
authored andcommitted
fix(repack): give 600s timeout to acquire exclusive lock and skip repack if not succeeded
rather do nothing than kill transactions
1 parent d1c39f9 commit b85e41e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

repack/repack.go

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ var (
2323
pgRepackArgs = []string{
2424
"--no-superuser-check",
2525
"--no-password",
26+
"-T", "600",
27+
"--no-kill-backend",
2628
"-d", utils.Cfg.DbName,
2729
"-h", utils.Cfg.DbHost,
2830
"-p", fmt.Sprintf("%d", utils.Cfg.DbPort),

0 commit comments

Comments
 (0)