The following code segment was a bug in MySQL. Thread 1: if (thd->proc_info) { fputs(thd->proc_info, ..); } Thread 2: th

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The following code segment was a bug in MySQL. Thread 1: if (thd->proc_info) { fputs(thd->proc_info, ..); } Thread 2: th

Post by answerhappygod »

The Following Code Segment Was A Bug In Mysql Thread 1 If Thd Proc Info Fputs Thd Proc Info Thread 2 Th 1
The Following Code Segment Was A Bug In Mysql Thread 1 If Thd Proc Info Fputs Thd Proc Info Thread 2 Th 1 (23.56 KiB) Viewed 24 times
a. Explain the problem with the code?
b. Write code to fix the problem.
The following code segment was a bug in MySQL. Thread 1: if (thd->proc_info) { fputs(thd->proc_info, ..); } Thread 2: thd->proc_info = NULL;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply