Unify buffered writer naming

This commit is contained in:
Yinan Zhang
2020-01-09 09:59:17 -08:00
parent 9a60cf54ec
commit 6b6b4709b3
6 changed files with 21 additions and 21 deletions

View File

@@ -631,12 +631,12 @@ prof_log_stop(tsdn_t *tsdn) {
char *prof_log_stop_buf = (char *)iallocztm(tsdn,
PROF_LOG_STOP_BUFSIZE, sz_size2index(PROF_LOG_STOP_BUFSIZE),
false, NULL, true, arena_get(TSDN_NULL, 0, true), true);
buf_writer_arg_t prof_log_stop_buf_arg = {prof_emitter_write_cb, &arg,
buf_write_arg_t prof_log_stop_buf_arg = {prof_emitter_write_cb, &arg,
prof_log_stop_buf, PROF_LOG_STOP_BUFSIZE - 1, 0};
/* Emit to json. */
emitter_init(&emitter, emitter_output_json_compact,
buffered_write_cb, &prof_log_stop_buf_arg);
emitter_init(&emitter, emitter_output_json_compact, buf_write_cb,
&prof_log_stop_buf_arg);
emitter_begin(&emitter);
prof_log_emit_metadata(&emitter);
@@ -645,7 +645,7 @@ prof_log_stop(tsdn_t *tsdn) {
prof_log_emit_allocs(tsd, &emitter);
emitter_end(&emitter);
buf_writer_flush(&prof_log_stop_buf_arg);
buf_write_flush(&prof_log_stop_buf_arg);
idalloctm(tsdn, prof_log_stop_buf, NULL, NULL, true, true);
/* Reset global state. */