Commit b94f62f7 authored by unknown's avatar unknown

after merge fixes


innobase/os/os0file.c:
  after merge fix
sql/ha_innodb.cc:
  after merge fix
sql/sql_select.cc:
  after merge fix (The patch for 4.0 didn't make sence in 4.1)
parent 5bf17d04
...@@ -539,7 +539,7 @@ os_file_opendir( ...@@ -539,7 +539,7 @@ os_file_opendir(
if (dir == INVALID_HANDLE_VALUE) { if (dir == INVALID_HANDLE_VALUE) {
if (error_is_fatal) { if (error_is_fatal) {
os_file_handle_error(NULL, dirname, "opendir"); os_file_handle_error(dirname, "opendir");
} }
return(NULL); return(NULL);
...@@ -550,7 +550,7 @@ os_file_opendir( ...@@ -550,7 +550,7 @@ os_file_opendir(
dir = opendir(dirname); dir = opendir(dirname);
if (dir == NULL && error_is_fatal) { if (dir == NULL && error_is_fatal) {
os_file_handle_error(0, dirname, "opendir"); os_file_handle_error(dirname, "opendir");
} }
return(dir); return(dir);
...@@ -733,7 +733,7 @@ os_file_create_directory( ...@@ -733,7 +733,7 @@ os_file_create_directory(
if (!(rcode != 0 || if (!(rcode != 0 ||
(GetLastError() == ERROR_FILE_EXISTS && !fail_if_exists))) { (GetLastError() == ERROR_FILE_EXISTS && !fail_if_exists))) {
/* failure */ /* failure */
os_file_handle_error(NULL, pathname, "CreateDirectory"); os_file_handle_error(Npathname, "CreateDirectory");
return(FALSE); return(FALSE);
} }
...@@ -746,7 +746,7 @@ os_file_create_directory( ...@@ -746,7 +746,7 @@ os_file_create_directory(
if (!(rcode == 0 || (errno == EEXIST && !fail_if_exists))) { if (!(rcode == 0 || (errno == EEXIST && !fail_if_exists))) {
/* failure */ /* failure */
os_file_handle_error(0, pathname, "mkdir"); os_file_handle_error(pathname, "mkdir");
return(FALSE); return(FALSE);
} }
...@@ -1274,7 +1274,7 @@ loop: ...@@ -1274,7 +1274,7 @@ loop:
ret = unlink((const char*)name); ret = unlink((const char*)name);
if (ret != 0 && errno != ENOENT) { if (ret != 0 && errno != ENOENT) {
os_file_handle_error(0, name, "delete"); os_file_handle_error(name, "delete");
return(FALSE); return(FALSE);
} }
...@@ -1336,7 +1336,7 @@ loop: ...@@ -1336,7 +1336,7 @@ loop:
ret = unlink((const char*)name); ret = unlink((const char*)name);
if (ret != 0) { if (ret != 0) {
os_file_handle_error(0, name, "delete"); os_file_handle_error(name, "delete");
return(FALSE); return(FALSE);
} }
...@@ -1366,7 +1366,7 @@ os_file_rename( ...@@ -1366,7 +1366,7 @@ os_file_rename(
return(TRUE); return(TRUE);
} }
os_file_handle_error(NULL, oldpath, "rename"); os_file_handle_error(oldpath, "rename");
return(FALSE); return(FALSE);
#else #else
...@@ -1375,7 +1375,7 @@ os_file_rename( ...@@ -1375,7 +1375,7 @@ os_file_rename(
ret = rename((const char*)oldpath, (const char*)newpath); ret = rename((const char*)oldpath, (const char*)newpath);
if (ret != 0) { if (ret != 0) {
os_file_handle_error(0, oldpath, "rename"); os_file_handle_error(oldpath, "rename");
return(FALSE); return(FALSE);
} }
......
...@@ -4677,8 +4677,8 @@ ha_innobase::start_stmt( ...@@ -4677,8 +4677,8 @@ ha_innobase::start_stmt(
ut_error; ut_error;
} }
if (thd->lex.sql_command == SQLCOM_SELECT if (thd->lex->sql_command == SQLCOM_SELECT
&& thd->lex.lock_option == TL_READ) { && thd->lex->lock_option == TL_READ) {
/* For other than temporary tables, we obtain /* For other than temporary tables, we obtain
no lock for consistent read (plain SELECT) */ no lock for consistent read (plain SELECT) */
......
...@@ -6463,11 +6463,7 @@ end_send_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), ...@@ -6463,11 +6463,7 @@ end_send_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
if (error > 0) if (error > 0)
DBUG_RETURN(-1); /* purecov: inspected */ DBUG_RETURN(-1); /* purecov: inspected */
if (end_of_records) if (end_of_records)
{
if (!error)
join->send_records++;
DBUG_RETURN(0); DBUG_RETURN(0);
}
if (join->send_records >= join->unit->select_limit_cnt && if (join->send_records >= join->unit->select_limit_cnt &&
join->do_send_rows) join->do_send_rows)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment