-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-30863 Server freeze, all threads in trx_assign_rseg_low()
trx_assign_rseg_low(): Simplify the debug check. trx_rseg_t::reinit(): Reset the skip_allocation() flag. This logic was broken in the merge commit 3e2ad0e of commit 0de3be8 (that is, innodb_undo_log_truncate=ON would never be "completed"). Tested by: Matthias Leich
- Loading branch information
Showing
3 changed files
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
485a1b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand c++ so this question might be weird. Shouldn't the files that are here have the formatted code? I mean in some places it has big spaces between words, in other places it has small spaces and in some places it has line breaks when some words should be on the same line. Does this make sense to you?
485a1b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a mix of coding standards in place. Big spaces where the old standard, but the move is towards 2 space indent standard when new functions are added or substantially rewritten.
The line breaks are there to keep to a 80 column limit.
Function names are put in a separate line to their return type here too. With complex return types it can be hard to see the function name.
485a1b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InnoDB source code formatting was discussed in 2018. @montywi was of the opinion that we should not reformat all code, like mysql/mysql-server@ac7ad83 or mysql/mysql-server@cdf36f4 and several changes in between, because it could make it harder to contribute some code from forked code bases.
Another problem with automatic reformatting is that some parts of the formatting rules (CODING_STANDARDS.md cannot be expressed in
.clang-format
).