[Commits] Rev 3139: Enhance crash reporting. Fix in file:///H:/bzr/5.3/

Vladislav Vaintroub wlad at montyprogram.com
Wed Aug 3 14:42:45 EEST 2011


At file:///H:/bzr/5.3/

------------------------------------------------------------
revno: 3139
revision-id: wlad at montyprogram.com-20110803114253-rlmxf7dabaciyigb
parent: knielsen at knielsen-hq.org-20110801090530-7mm16nmdyw1q0tyi
fixes bug(s): https://launchpad.net/bugs/819711 https://launchpad.net/bugs/820169
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.3
timestamp: Wed 2011-08-03 13:42:53 +0200
message:
  Enhance crash reporting. Fix 
  LPBug#819711 : optimizer_switch must be reported on segfault
  LPBug#820169:  Full query text must be reported on crash
-------------- next part --------------
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2011-07-21 21:23:08 +0000
+++ b/sql/mysqld.cc	2011-08-03 11:42:53 +0000
@@ -2754,9 +2754,10 @@
     fprintf(stderr, "\nTrying to get some variables.\n"
                     "Some pointers may be invalid and cause the dump to abort.\n");
     fprintf(stderr, "Query (%p): ", thd->query());
-    my_safe_print_str(thd->query(), min(1024, thd->query_length()));
+    my_safe_print_str(thd->query(), thd->query_length());
     fprintf(stderr, "Connection ID (thread ID): %lu\n", (ulong) thd->thread_id);
     fprintf(stderr, "Status: %s\n", kreason);
+    fprintf(stderr, "Optimizer switch: %s\n", optimizer_switch_str);
     fputc('\n', stderr);
   }
   fprintf(stderr, "\



More information about the commits mailing list