Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31d0ec2

Browse files
committed
Add log_file
1 parent d23ae4e commit 31d0ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/vprofiler/trace_tool.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void *TraceTool::check_write_log(void *arg) {
249249
dump data to log files. */
250250
while (true) {
251251
sleep(5);
252-
instance->log_file << "Checking" << endl;
252+
log_file << "Checking" << endl;
253253
timespec now = get_time();
254254
if (now.tv_sec - global_last_query.tv_sec >= 5 && transaction_id > 0) {
255255
/* Create a new TraceTool instnance. */
@@ -261,7 +261,7 @@ void *TraceTool::check_write_log(void *arg) {
261261

262262
/* Dump data in the old instance to log files and
263263
reclaim memory. */
264-
instance->log_file << "Writing data to file" << endl;
264+
log_file << "Writing data to file" << endl;
265265
old_instace->write_log();
266266
delete old_instace;
267267
}

0 commit comments

Comments
 (0)