This project is archived and is in readonly mode.
Mysql Deadlock debugging
-
Jeremy Kemper
This command is only available to mysql superusers so log_innodb_status should check for errors.
Also, could you attach a patch created with git-format-patch? It's much simpler than adding a remote, fetching, cherrypicking a single commit, etc.
-
Mike Perham
Jeremy, sorry I'm not terribly git-fluent. I've pushed a new commit with the error handling you requested to my fork but I don't know the exact patch command to do what you want. tim pope's "how to contribute to rails with git" page doesn't help either. Can you send me the command to emit a patch for a given commit? This prints out nothing:
git format-patch cb6aa8e8516cef55b81f6a061a3e87c6208cd553
-
Jeremy Kemper
Thanks Mike! Check out http://rails.lighthouseapp.com/p... for the skinny.
-
Mike Perham
Thanks for the pointer, Jeremy. Patch attached.
-
Mike Perham
One thing I forgot, the log_innodb_status method should be moved down to the private section.
-
josh
- Assigned user set to Jeremy Kemper
- Tag set to activerecord, patch
-
Richie Vos
I personally still would like this to be included. We're using this patch in production servers as a plugin, but it seems like it's useful enough to be part of Rails core.
