Bug #69351 | wrong process id shown when reporting loading or saving buffer pool ? | ||
---|---|---|---|
Submitted: | 30 May 2013 8:19 | Modified: | 30 May 2013 14:48 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Logging | Severity: | S4 (Feature request) |
Version: | 5.6.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[30 May 2013 8:19]
Simon Mudd
[30 May 2013 9:05]
MySQL Verification Team
Background: http://bugs.mysql.com/bug.php?id=56240 http://bazaar.launchpad.net/~mysql/mysql-server/5.6/revision/4461 The function ut_print_timestamp prints that information. It uses the thread id instead of the process id. Buffer pool dump and load is done in its own thread, buf_dump_thread, so it has a different id.
[30 May 2013 13:38]
Simon Mudd
Yes, that I understand but look at the formatting of the thread id. It should be as far as I can see a 64-bit unsigned number, yet is shown in hex not decimal as other "process ids". That strikes me as being inconsistent: sql/log.cc uses: fprintf(stderr, "%d-%02d-%02d %02d:%02d:%02d %lu [%s] %.*s\n", whereas storage/innobase/ut/ut0ut.cc uses: fprintf(file, "%d-%02d-%02d %02d:%02d:%02d %lx", %lu (long unsigned) vs %lx (hex) That's a trivial difference but just stands out as being "weird".