Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit12788ae

Browse files
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

File tree

1 file changed

+661
-445
lines changed

1 file changed

+661
-445
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp