Bug #19509 Redundant check in sql_acl.cc
Submitted: 3 May 2006 9:30 Modified: 15 May 2006 19:24
Reporter: Andrey Hristov Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1 OS:Linux (Linux)
Assigned to: Tatiana Azundris Nuernberg CPU Architecture:Any

[3 May 2006 9:30] Andrey Hristov
Description:
There is a redundant check in sql_acl.cc around line 2974.

How to repeat:
The code is as follows. See the if clause:
#ifdef HAVE_REPLICATION
  /*
    GRANT and REVOKE are applied the slave in/exclusion rules as they are
    some kind of updates to the mysql.% tables.
  */
  if (thd->slave_thread && rpl_filter->is_on())
  if (thd->slave_thread && rpl_filter->is_on())
  {
....
[8 May 2006 5:48] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/6080
[15 May 2006 14:55] Tatiana Azundris Nuernberg
fixed in 5.1.11-beta
[15 May 2006 19:24] Paul DuBois
No changelog entry needed.
(Change was cosmetic, did not fix a bug in
server operation.)