- Notifications
You must be signed in to change notification settings - Fork5
Commit12788ae
committed
Refactor script execution state machine in pgbench.
The doCustom() function had grown into quite a mess. Rewrite it, in a moreexplicit state machine style, for readability.This also fixes one minor bug: if a script consisted entirely of metacommands, doCustom() never returned to the caller, so progress reportswith the -P option were not printed. I don't want to backpatch thisrefactoring, and the bug is quite insignificant, so only commit this tomaster, and leave the bug unfixed in back-branches.Review and original bug report by Fabien Coelho.Discussion: <alpine.DEB.2.20.1607090850120.3412@sto>1 parentda6c4f6 commit12788ae
1 file changed
+661
-445
lines changed0 commit comments
Comments
(0)