Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
60e1c869
Commit
60e1c869
authored
Mar 02, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for a bug removed
parent
7535886f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
19 deletions
+8
-19
mysys/my_mmap.c
mysys/my_mmap.c
+2
-7
sql/ha_innodb.cc
sql/ha_innodb.cc
+6
-12
No files found.
mysys/my_mmap.c
View file @
60e1c869
...
@@ -28,8 +28,7 @@ int my_msync(int fd, void *addr, size_t len, int flags)
...
@@ -28,8 +28,7 @@ int my_msync(int fd, void *addr, size_t len, int flags)
return
my_sync
(
fd
,
MYF
(
0
));
return
my_sync
(
fd
,
MYF
(
0
));
}
}
#else
#elif defined(__WIN__)
#ifdef __WIN__
static
SECURITY_ATTRIBUTES
mmap_security_attributes
=
static
SECURITY_ATTRIBUTES
mmap_security_attributes
=
{
sizeof
(
SECURITY_ATTRIBUTES
),
0
,
TRUE
};
{
sizeof
(
SECURITY_ATTRIBUTES
),
0
,
TRUE
};
...
@@ -83,11 +82,7 @@ int my_msync(int fd, void *addr, size_t len, int flags)
...
@@ -83,11 +82,7 @@ int my_msync(int fd, void *addr, size_t len, int flags)
return
FlushViewOfFile
(
addr
,
len
)
?
0
:
-
1
;
return
FlushViewOfFile
(
addr
,
len
)
?
0
:
-
1
;
}
}
#endif
#else
#ifndef __WIN__
#warning "no mmap!"
#warning "no mmap!"
#endif
#endif
#endif
sql/ha_innodb.cc
View file @
60e1c869
...
@@ -1351,10 +1351,10 @@ innobase_commit_low(
...
@@ -1351,10 +1351,10 @@ innobase_commit_low(
return
;
return
;
}
}
/* The following will be enabled later when we put the 4.1 functionality back
#ifdef HAVE_REPLICATION
to 5.0. */
THD
*
thd
=
current_thd
;
#ifdef DISABLE_HAVE_REPLICATION
if
(
current_
thd
->
slave_thread
)
{
if
(
thd
&&
thd
->
slave_thread
)
{
/* Update the replication position info inside InnoDB */
/* Update the replication position info inside InnoDB */
trx
->
mysql_master_log_file_name
trx
->
mysql_master_log_file_name
...
@@ -6328,13 +6328,7 @@ innobase_xa_prepare(
...
@@ -6328,13 +6328,7 @@ innobase_xa_prepare(
/* We were instructed to prepare the whole transaction, or
/* We were instructed to prepare the whole transaction, or
this is an SQL statement end and autocommit is on */
this is an SQL statement end and autocommit is on */
/* If there is no active InnoDB transaction,
ut_ad
(
trx
->
active_trans
);
trx_prepare_for_mysql() will (temporarily) start one */
if
(
trx
->
active_trans
==
0
)
{
trx
->
active_trans
=
1
;
}
error
=
trx_prepare_for_mysql
(
trx
);
error
=
trx_prepare_for_mysql
(
trx
);
}
else
{
}
else
{
...
@@ -6344,7 +6338,7 @@ innobase_xa_prepare(
...
@@ -6344,7 +6338,7 @@ innobase_xa_prepare(
if
(
trx
->
auto_inc_lock
)
{
if
(
trx
->
auto_inc_lock
)
{
/* If we had reserved the auto-inc lock for some
/* If we had reserved the auto-inc lock for some
table in this SQL statement we release it now */
table in this SQL statement we release it now */
row_unlock_table_autoinc_for_mysql
(
trx
);
row_unlock_table_autoinc_for_mysql
(
trx
);
}
}
/* Store the current undo_no of the transaction so that we
/* Store the current undo_no of the transaction so that we
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment