summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <greg@mysql.com>2003-03-28 14:24:32 -0500
committerunknown <greg@mysql.com>2003-03-28 14:24:32 -0500
commit9c3d7df569998425c55312bfc6a890346762d26e (patch)
treee7d6d77bba01f8deac042852298bd68bae0527ad /client
parent9dc2425066d69f8d0084e115a67846929972cf3f (diff)
downloadmariadb-git-9c3d7df569998425c55312bfc6a890346762d26e.tar.gz
Manual merge of Novell's changes for NetWare platform from 4.0, 4.1 patches
client/mysql.cc: NetWare only: Remove pthread_yield on large screen results client/mysqldump.c: NetWare only: Remove pthread_yield on large screen results include/my_pthread.h: NetWare only: pthread_cond_timedwait now present in LibC mysys/default.c: Add conditional for NetWare mysys/my_init.c: Changes to netware_init mysys/my_pthread.c: NetWare only: special my_pthread_cond_timedwait no longer needed mysys/thr_mutex.c: NetWare: no need for pthread_mutex_lock calls netware/BUILD/mwenv: Add zlib to environment variables netware/Makefile.am: Add isam/isamchk.def to netware_build_files scripts/make_binary_distribution.sh: Made bin directory files more flexible for alternate platforms, without unnecessary repetition
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc25
-rw-r--r--client/mysqldump.c10
2 files changed, 1 insertions, 34 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 32655d1ccd9..9720a4ada9d 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1774,9 +1774,6 @@ print_table_data(MYSQL_RES *result)
MYSQL_ROW cur;
MYSQL_FIELD *field;
bool *num_flag;
-#ifdef __NETWARE__
- uint lines= 0;
-#endif
num_flag=(bool*) my_alloca(sizeof(bool)*mysql_num_fields(result));
if (info_flag)
@@ -1832,10 +1829,6 @@ print_table_data(MYSQL_RES *result)
length, str);
}
(void) tee_fputs("\n", PAGER);
-#ifdef __NETWARE__
- // on a long result the screen could hog the cpu
- if ((lines++ & 1023) == 0) pthread_yield();
-#endif
}
tee_puts(separator.c_ptr(), PAGER);
my_afree((gptr) num_flag);
@@ -1847,9 +1840,6 @@ print_table_data_html(MYSQL_RES *result)
{
MYSQL_ROW cur;
MYSQL_FIELD *field;
-#ifdef __NETWARE__
- uint lines= 0;
-#endif
mysql_field_seek(result,0);
(void) tee_fputs("<TABLE BORDER=1><TR>", PAGER);
@@ -1874,10 +1864,6 @@ print_table_data_html(MYSQL_RES *result)
(void) tee_fputs("</TD>", PAGER);
}
(void) tee_fputs("</TR>", PAGER);
-#ifdef __NETWARE__
- // on a long result the screen could hog the cpu
- if ((lines++ & 1023) == 0) pthread_yield();
-#endif
}
(void) tee_fputs("</TABLE>", PAGER);
}
@@ -1888,9 +1874,6 @@ print_table_data_xml(MYSQL_RES *result)
{
MYSQL_ROW cur;
MYSQL_FIELD *fields;
-#ifdef __NETWARE__
- uint lines= 0;
-#endif
mysql_field_seek(result,0);
@@ -1914,10 +1897,6 @@ print_table_data_xml(MYSQL_RES *result)
" &nbsp; ") : "NULL"));
}
(void) tee_fputs(" </row>\n", PAGER);
-#ifdef __NETWARE__
- // on a long result the screen could hog the cpu
- if ((lines++ & 1023) == 0) pthread_yield();
-#endif
}
(void) tee_fputs("</resultset>\n", PAGER);
}
@@ -1950,10 +1929,6 @@ print_table_data_vertically(MYSQL_RES *result)
tee_fprintf(PAGER, "%*s: ",(int) max_length,field->name);
tee_fprintf(PAGER, "%s\n",cur[off] ? (char*) cur[off] : "NULL");
}
-#ifdef __NETWARE__
- // on a long result the screen could hog the cpu
- if ((row_count & 1023) == 0) pthread_yield();
-#endif
}
}
diff --git a/client/mysqldump.c b/client/mysqldump.c
index 72d9200a6f6..49d984d4eb0 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -30,7 +30,7 @@
** master/autocommit code by Brian Aker <brian@tangent.org>
** SSL by
** Andrei Errapart <andreie@no.spam.ee>
-** Tõnu Samuel <tonu@please.do.not.remove.this.spam.ee>
+** Tõnu Samuel <tonu@please.do.not.remove.this.spam.ee>
** XML by Gary Huntress <ghuntress@mediaone.net> 10/10/01, cleaned up
** and adapted to mysqldump 05/11/01 by Jani Tolonen
** Added --single-transaction option 06/06/2002 by Peter Zaitsev
@@ -986,9 +986,6 @@ static void dumpTable(uint numFields, char *table)
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");
@@ -1218,11 +1215,6 @@ 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 */