aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-02-12 17:30:46 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-02-12 17:30:46 -0300
commit34f13cc48432fb0a70bd76116347a758b7a0bc63 (patch)
tree831663043d13ae5aafeb73af92d91a8642ce0a45 /src/backend/utils/adt/json.c
parentdb94419ffd6833da27176f6cca843483b4515065 (diff)
downloadpostgresql-34f13cc48432fb0a70bd76116347a758b7a0bc63.tar.gz
postgresql-34f13cc48432fb0a70bd76116347a758b7a0bc63.zip
pgbench: cleanup use of a "logfile" parameter
There is no reason to have the per-thread logfile file pointer as a separate parameter in various functions: it's much simpler to put it in the per-thread state struct instead, which is already being passed to all functions that need the log file anyway. Change the callsites in which it was used as a boolean to test whether logging is active, so that they use the use_log global variable instead. No backpatch, even though this exists since commit a887c486d5df of March 2010, because this is just for cleanliness' sake and the surrounding code has been modified a lot recently anyway.
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions