forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mysql-5.6][PR] track Semisync_ack Engine_commit time in slow query log
Summary: Closes facebook#681 GitHub Author: Francois Richard <[email protected]> Github PR Sync: {sync, type="child", parent="github", parentrepo="facebook/mysql-5.6", parentprnum="681", parentprfbid="1959343724341677"} Test Plan: Imported from GitHub, without a `Test Plan:` line. Reviewers: mung Reviewed By: mung Subscribers: yoshinori, phabricatorlinter, [email protected] Differential Revision: https://phabricator.intern.facebook.com/D5625496 Signature: t1:5625496:1502906705:f1473626a3431a275726a2ff0f42c6ea7895680a
- Loading branch information
Francois Richard
committed
Aug 24, 2017
1 parent
ee05d9a
commit e74d0cc
Showing
9 changed files
with
52 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set timestamp=10; | ||
select unix_timestamp(), sleep(2); | ||
unix_timestamp() sleep(2) | ||
10 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set timestamp=10; | ||
select unix_timestamp(), sleep(2); | ||
unix_timestamp() sleep(2) | ||
10 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--slow-query-log=1 --long-query-time=1 --log-slow-extra=1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set timestamp=10; | ||
select unix_timestamp(), sleep(2); | ||
|
||
let $MYSQLD_DATADIR= `select @@datadir`; | ||
--exec [ `grep "Engine_commit_time:" $MYSQLD_DATADIR/../mysqld-slow.log | wc -l` -ge "1" ] | ||
|
||
--exit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--slow-query-log=1 --long-query-time=1 --log-slow-extra=1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set timestamp=10; | ||
select unix_timestamp(), sleep(2); | ||
|
||
let $MYSQLD_DATADIR= `select @@datadir`; | ||
--exec [ `grep "Semisync_ack_time:" $MYSQLD_DATADIR/../mysqld-slow.log | wc -l` -ge "1" ] | ||
|
||
--exit |
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