git://git.iain.cx/iain
/
pstop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get relative stats properly for events_stages_summary
[pstop.git]
/
main.go
diff --git
a/main.go
b/main.go
index
0197e83
..
facfa65
100644
(file)
--- a/
main.go
+++ b/
main.go
@@
-59,6
+59,9
@@
func connect_by_defaults_file( defaults_file string ) *sql.DB {
log.Fatal(err)
}
+ // deliberately limit the pool size to 5 to avoid "problems" if any queries hang.
+ dbh.SetMaxOpenConns(5) // hard-coded value!
+
return dbh
}