Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1990 05/12/23 18:18:14 msvensson@neptunus.(none) +3 -0
BUG#15775 "drop user" command does not refresh acl_check_hosts
- DROP USER command didn't reload the acl_check_hosts cache causing subsequent
connect's via TCP to fail randomly.
sql/sql_acl.cc
1.185 05/12/23 18:18:08 msvensson@neptunus.(none) +4 -0
Reload acl_check_hosts as its memory is mapped to acl_user
mysql-test/t/connect.test
1.20 05/12/23 18:18:08 msvensson@neptunus.(none) +30 -0
Test case for connecting via TCP after drop user.
mysql-test/r/connect.result
1.21 05/12/23 18:18:08 msvensson@neptunus.(none) +14 -0
Update test results
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/bug15775_part2/my50-bug15775_part2
--- 1.184/sql/sql_acl.cc 2005-12-06 17:04:21 +01:00
+++ 1.185/sql/sql_acl.cc 2005-12-23 18:18:08 +01:00
@@ -5055,6 +5055,10 @@
/* If search is requested, we do not need to search further. */
if (! drop && ! user_to)
goto end;
+ /* Reload acl_check_hosts as its memory is mapped to acl_user */
+ delete_dynamic(&acl_wild_hosts);
+ hash_free(&acl_check_hosts);
+ init_check_host();
}
}
--- 1.20/mysql-test/r/connect.result 2005-11-07 22:30:38 +01:00
+++ 1.21/mysql-test/r/connect.result 2005-12-23 18:18:08 +01:00
@@ -97,3 +97,17 @@
set @id := 1;
delete from t1 where id like @id;
drop table t1;
+create user b15775_1@host1;
+create user b15775_2@host2;
+create user b15775_3@host3;
+create user b15775_4@host4;
+create user b15775_5@host5;
+create user b15775_6@host6;
+create user b15775_7@host7;
+drop user b15775_3@host3;
+drop user b15775_1@host1;
+drop user b15775_2@host2;
+drop user b15775_4@host4;
+drop user b15775_5@host5;
+drop user b15775_6@host6;
+drop user b15775_7@host7;
--- 1.19/mysql-test/t/connect.test 2005-11-07 22:30:38 +01:00
+++ 1.20/mysql-test/t/connect.test 2005-12-23 18:18:08 +01:00
@@ -98,3 +98,33 @@
drop table t1;
# End of 4.1 tests
+
+
+#
+# Bug#15775 "drop user" command does not refresh acl_check_hosts
+#
+create user b15775_1@host1;
+create user b15775_2@host2;
+create user b15775_3@host3;
+create user b15775_4@host4;
+create user b15775_5@host5;
+create user b15775_6@host6;
+create user b15775_7@host7;
+
+drop user b15775_3@host3;
+
+# This connect failed before fix since the acl_check_hosts list was corrupted by the
"drop user"
+connect (con8,127.0.0.1,root,,test,$MASTER_MYPORT,);
+disconnect con8;
+
+connection default;
+drop user b15775_1@host1;
+drop user b15775_2@host2;
+drop user b15775_4@host4;
+drop user b15775_5@host5;
+drop user b15775_6@host6;
+drop user b15775_7@host7;
+
+connect (con9,127.0.0.1,root,,test,$MASTER_MYPORT,);
+disconnect con9;
+connection default;
| Thread |
|---|
| • bk commit into 5.0 tree (msvensson:1.1990) BUG#15775 | msvensson | 23 Dec |