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 | 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]
Shane Bester
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".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.