diff options
author | unknown <monty@mashka.mysql.fi> | 2003-02-16 22:50:00 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-02-16 22:50:00 +0200 |
commit | 73cc50e45d5ad498514ce6dd103f0a0e82162a5b (patch) | |
tree | 10aed87e653c90aca05d9b435b57af56f6e7398e /client | |
parent | fb2c8c7cb879f7f46fda0398e4aa3051d9017997 (diff) | |
download | mariadb-git-73cc50e45d5ad498514ce6dd103f0a0e82162a5b.tar.gz |
Patch for novell
Reverted wrong patch for mysqld_safe.sh
client/mysqldump.c:
Patch for novell.
scripts/mysqld_safe.sh:
Reverted wrong patch.
(We must delete the files first as otherwise we will get a problem if the files has the wrong permissions or if the machine went down without removing the socket file)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 023e35cf7c9..e7d2b8bebe1 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -894,9 +894,12 @@ static void dumpTable(uint numFields, char *table) { char query[QUERY_LENGTH], *end, buff[256],table_buff[NAME_LEN+3]; MYSQL_RES *res; - MYSQL_FIELD *field; - MYSQL_ROW row; + MYSQL_FIELD *field; + MYSQL_ROW row; ulong rownr, row_break, total_length, init_length; +#if defined(__NETWARE__) && defined(THREAD) + uint lines= 0; +#endif if (verbose) fprintf(stderr, "-- Sending SELECT query...\n"); @@ -1123,6 +1126,11 @@ static void dumpTable(uint numFields, char *table) } else if (!opt_xml) fputs(");\n", md_result_file); +#if defined(__NETWARE__) && defined(THREAD) + /* on a long result the screen could hog the cpu */ + if ((lines++ & 1023) == 0) + pthread_yield(); +#endif } /* XML - close table tag and supress regular output */ |