Merge lp:~percona-dev/percona-server/5.1.55-724674 into lp:~percona-dev/percona-server/5.1.55

Proposed by Oleg Tsarev
Status: Merged
Approved by: Valentine Gostev
Approved revision: no longer in the source branch.
Merged at revision: 202
Proposed branch: lp:~percona-dev/percona-server/5.1.55-724674
Merge into: lp:~percona-dev/percona-server/5.1.55
Diff against target: 48 lines (+9/-18)
1 file modified
remove_fcntl_excessive_calls.patch (+9/-18)
To merge this branch: bzr merge lp:~percona-dev/percona-server/5.1.55-724674
Reviewer Review Type Date Requested Status
Valentine Gostev (community) qa Approve
Oleg Tsarev (community) code review Approve
Alexey Kopytov (community) Approve
Fred Linhoss (community) documentation Approve
Review via email: mp+51881@code.launchpad.net

This proposal supersedes a proposal from 2011-03-02.

Description of the change

To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote : Posted in a previous version of this proposal

Oleg,

Please remove all comment changes from your patch like this one:

+ continue;
+ }
+-#endif
++#endif /* defined(THREAD_SAFE_CLIENT) && !defined(MYSQL_SERVER) */

review: Needs Fixing
Revision history for this message
Oleg Tsarev (tsarev) wrote : Posted in a previous version of this proposal

Alexey,

What the reason for remove? Some of comments (from original) comment incorrect.

Revision history for this message
Oleg Tsarev (tsarev) wrote : Posted in a previous version of this proposal

Alexey,

What the reason for remove? Some of comments (from original) commit incorrect.

Revision history for this message
Alexey Kopytov (akopytov) wrote : Posted in a previous version of this proposal

If by 'original commit' you mean the current state of remove_fcntl_excessive_calls.patch, then I don't see any _changes_ in the comment lines, you are only adding new comments.

If by 'original commit' you mean the MySQL server code, then I don't think you should change anything inb it unless you really have to. In this particular case your goal is to port the patch, not to improve commenting for some randomly selected parts of the server.

Revision history for this message
Fred Linhoss (fred-linhoss) wrote : Posted in a previous version of this proposal

Documentation changed:

Page changed:
http://www.percona.com/docs/wiki/percona-server:features:remove_fcntl_excessive_calls

Release note added for both 5.1.55-12.6 & 5.5.9-20.1.

review: Approve (documentation)
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote : Posted in a previous version of this proposal

Please note, it may happen that it won't go into 5.1.55-12.6 but only
in next release.

On Tue, Mar 1, 2011 at 5:43 AM, Fred Linhoss <email address hidden> wrote:
> Review: Approve documentation
> Documentation changed:
>
> Page changed:
> http://www.percona.com/docs/wiki/percona-server:features:remove_fcntl_excessive_calls
>
> Release note added for both 5.1.55-12.6 & 5.5.9-20.1.
>
> --
> https://code.launchpad.net/~percona-dev/percona-server/5.1.55-724674/+merge/51549
> Your team Percona developers is requested to review the proposed merge of lp:~percona-dev/percona-server/5.1.55-724674 into lp:percona-server.
>

--
Vadim Tkachenko, CTO, Percona Inc.
Phone +1-888-401-3403,  Skype: vadimtk153
Schedule meeting: http://tungle.me/VadimTkachenko

Revision history for this message
Fred Linhoss (fred-linhoss) wrote :

No additional doc changes made

review: Approve (documentation)
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve
Revision history for this message
Oleg Tsarev (tsarev) wrote :

Alexey already review

review: Approve (code review)
Revision history for this message
Valentine Gostev (longbow) wrote :

I would like to know what changes this merge introduces, besides the reference to the mentioned revision, is any additional info available?

review: Needs Information (qa)
Revision history for this message
Oleg Tsarev (tsarev) wrote :

In:
http://bazaar.launchpad.net/~mysqlatfacebook/mysqlatfacebook/5.1/revision/3540
you can see commit message:

From http://bugs.mysql.com/bug.php?id=54790 I can double peak QPS for
sysbench by removing excessive calls to fcntl in my_real_read. This is a port
of the official fix.

Go to:
http://bugs.mysql.com/bug.php?id=54790

and get information

Revision history for this message
Valentine Gostev (longbow) :
review: Approve (qa)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'remove_fcntl_excessive_calls.patch'
2--- remove_fcntl_excessive_calls.patch 2011-02-08 23:02:17 +0000
3+++ remove_fcntl_excessive_calls.patch 2011-03-02 11:19:45 +0000
4@@ -18,6 +18,15 @@
5 diff -ruN a/sql/net_serv.cc b/sql/net_serv.cc
6 --- a/sql/net_serv.cc 2010-06-03 19:50:27.000000000 +0400
7 +++ b/sql/net_serv.cc 2010-07-22 21:40:30.680424001 +0400
8+@@ -64,7 +64,7 @@
9+ can't normally do this the client should have a bigger max_allowed_packet.
10+ */
11+
12+-#if defined(__WIN__) || !defined(MYSQL_SERVER)
13++#if (defined(__WIN__) || !defined(MYSQL_SERVER)) && !defined(NO_ALARM)
14+ /* The following is because alarms doesn't work on windows. */
15+ #define NO_ALARM
16+ #endif
17 @@ -139,7 +139,7 @@
18 if (vio != 0) /* If real connection */
19 {
20@@ -36,15 +45,6 @@
21 if ((interrupted || length == 0) && !thr_alarm_in_use(&alarmed))
22 {
23 if (!thr_alarm(&alarmed, net->write_timeout, &alarm_buff))
24-@@ -655,7 +655,7 @@
25- my_progname);
26- #endif /* EXTRA_DEBUG */
27- }
28--#if defined(THREAD_SAFE_CLIENT) && !defined(MYSQL_SERVER)
29-+#if defined(THREAD_SAFE_CLIENT) && defined(NO_ALARM)
30- if (vio_errno(net->vio) == SOCKET_EINTR)
31- {
32- DBUG_PRINT("warning",("Interrupted write. Retrying..."));
33 @@ -673,7 +673,7 @@
34 pos+=length;
35 update_statistics(thd_increment_bytes_sent(length));
36@@ -71,12 +71,3 @@
37 /*
38 We got an error that there was no data on the socket. We now set up
39 an alarm to not 'read forever', change the socket to non blocking
40-@@ -866,7 +867,7 @@
41- my_progname,vio_errno(net->vio));
42- #endif /* EXTRA_DEBUG */
43- }
44--#if defined(THREAD_SAFE_CLIENT) && !defined(MYSQL_SERVER)
45-+#if defined(THREAD_SAFE_CLIENT) && defined(NO_ALARM)
46- if (vio_errno(net->vio) == SOCKET_EINTR)
47- {
48- DBUG_PRINT("warning",("Interrupted read. Retrying..."));

Subscribers

People subscribed via source and target branches