Skip to content

Commit

Permalink
for more testing
Browse files Browse the repository at this point in the history
Connection Lost?

When 1001 querying, and 28323 inserting
see create_query.php and create_sql.php for more information
  • Loading branch information
jackeylu committed Jun 17, 2012
1 parent c837957 commit d334deb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1,006 deletions.
2 changes: 1 addition & 1 deletion create_query.php
Expand Up @@ -7,7 +7,7 @@

$f = fopen("query.sql","wb");
fwrite($f,"use test;\n");
foreach(range(1,1000) as $i)
foreach(range(1,30000) as $i)
{

$sql = "select redis_command(\"$host\",$port,". "\"set foo:$i bar\");\n";
Expand Down
2 changes: 1 addition & 1 deletion lib_mysqludf_redis.c
Expand Up @@ -210,7 +210,7 @@ my_bool redis_command_init(
return 0;

} else {
strcpy( message ,
snprintf(message,MYSQL_ERRMSG_SIZE,
"redis_command(host,port,command) Expected exactly 3 parameteres, a string, an integer and a string" );
return 1;
}
Expand Down
2 changes: 0 additions & 2 deletions lib_mysqludf_redis.sql
Expand Up @@ -16,8 +16,6 @@

DROP FUNCTION IF EXISTS lib_mysqludf_redis_info;
DROP FUNCTION IF EXISTS redis_command;
DROP FUNCTION IF EXISTS redis_command2;

CREATE FUNCTION lib_mysqludf_redis_info RETURNS string SONAME 'lib_mysqludf_redis.so';
CREATE FUNCTION redis_command RETURNS int SONAME 'lib_mysqludf_redis.so';
CREATE FUNCTION redis_command2 RETURNS string SONAME 'lib_mysqludf_redis.so';
1 change: 0 additions & 1 deletion lib_mysqludf_redis_drop.sql
Expand Up @@ -16,5 +16,4 @@

DROP FUNCTION IF EXISTS lib_mysqludf_redis_info;
DROP FUNCTION IF EXISTS redis_command;
DROP FUNCTION IF EXISTS redis_command2;

0 comments on commit d334deb

Please sign in to comment.