]> granicus.if.org Git - postgresql/commit
Fix pgbench options -C and -R together
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 24 Mar 2017 16:23:13 +0000 (19:23 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 24 Mar 2017 16:23:13 +0000 (19:23 +0300)
commit2ed391f95b34bb88b4d092f0a1d68ce3903df375
treec4f451100deb8ed849438ca05de4b787076a0d0b
parent8de6278d3b7c810fe5d31486491189d88550a2a6
Fix pgbench options -C and -R together

The bug is that prior to --rate doCustom was always disconnect/reconnect
without exiting, but with rate it returns if it has to wait. However threadRun
test whether there is a connection before recalling doCustom, so it was never
called.

Bug is not existed in head branch because of refactoring at
12788ae49e1933f463bc59a6efe46c4a01701b76, patch only 9.6

Author: Fabien Coelho
Reviewed-by: me
https://commitfest.postgresql.org/13/970/
src/bin/pgbench/pgbench.c