summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <greg@mysql.com>2003-03-21 16:45:39 -0500
committerunknown <greg@mysql.com>2003-03-21 16:45:39 -0500
commit2ec4163759bc19f5fc03cd5a0b1072afcdb16947 (patch)
tree6204247b50ae737bead82de5fdfbc3bdd63689b1 /client
parent0f18ab78970cd64418646e83a32d7e487477fb86 (diff)
downloadmariadb-git-2ec4163759bc19f5fc03cd5a0b1072afcdb16947.tar.gz
Post-4.0.12 changes from Novell: mostly NetWare-related code changes to utilize new LibC
client/mysql.cc: Remove unnecessary pthread_yield calls for NetWare client/mysqldump.c: Remove unnecessary pthread_yield calls for NetWare include/my_pthread.h: Special extern my_pthread_cond_timedwait no longer required for NetWare mysql-test/t/backup.test: replace_result added so test passes correctly on NetWare mysys/default.c: Add conditional to avoid non-applicable file checking on NetWare mysys/my_init.c: Remove working directory change from netware_init() mysys/my_pthread.c: Remove unnecessary NetWare version of my_pthread_cond_timedwait mysys/thr_mutex.c: Remove unnecessary NetWare block scripts/make_binary_distribution.sh: Changes to clear up extraneous EXTRA_BIN_FILES, NetWare sections
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc29
-rw-r--r--client/mysqldump.c8
2 files changed, 2 insertions, 35 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 4f7548afc92..377f4f08f63 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -811,8 +811,8 @@ static int read_lines(bool execute_commands)
/* Remove the '\n' */
{
char *p = strrchr(line, '\n');
- if (p != NULL)
- *p = '\0';
+ if (p != NULL)
+ *p = '\0';
}
#else
linebuffer[0]= (char) sizeof(linebuffer);
@@ -1597,9 +1597,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)
@@ -1655,10 +1652,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);
@@ -1670,9 +1663,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);
@@ -1697,10 +1687,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);
}
@@ -1711,9 +1697,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);
@@ -1737,10 +1720,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);
}
@@ -1773,10 +1752,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 f242b55159d..7b7c60c3c56 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -897,9 +897,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");
@@ -1126,11 +1123,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 */