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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ba5bc8a1
Commit
ba5bc8a1
authored
Jan 18, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-innodb to mysql-5.5-innodb.
parents
3d1f2986
359bddbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
storage/innobase/include/sync0rw.h
storage/innobase/include/sync0rw.h
+2
-1
storage/innobase/sync/sync0arr.c
storage/innobase/sync/sync0arr.c
+2
-2
storage/innobase/sync/sync0rw.c
storage/innobase/sync/sync0rw.c
+10
-9
No files found.
storage/innobase/include/sync0rw.h
View file @
ba5bc8a1
/*****************************************************************************
Copyright (c) 1995, 201
0, Innobase Oy
. All Rights Reserved.
Copyright (c) 1995, 201
1, Oracle and/or its affiliates
. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
...
...
@@ -555,6 +555,7 @@ UNIV_INTERN
void
rw_lock_debug_print
(
/*================*/
FILE
*
f
,
/*!< in: output stream */
rw_lock_debug_t
*
info
);
/*!< in: debug struct */
#endif
/* UNIV_SYNC_DEBUG */
...
...
storage/innobase/sync/sync0arr.c
View file @
ba5bc8a1
/*****************************************************************************
Copyright (c) 1995, 20
09, Innobase Oy
. All Rights Reserved.
Copyright (c) 1995, 20
11, Oracle and/or its affiliates
. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
...
...
@@ -714,7 +714,7 @@ print:
fprintf
(
stderr
,
"rw-lock %p "
,
(
void
*
)
lock
);
sync_array_cell_print
(
stderr
,
cell
);
rw_lock_debug_print
(
debug
);
rw_lock_debug_print
(
stderr
,
debug
);
return
(
TRUE
);
}
}
...
...
storage/innobase/sync/sync0rw.c
View file @
ba5bc8a1
/*****************************************************************************
Copyright (c) 1995, 20
09, Innobase Oy
. All Rights Reserved.
Copyright (c) 1995, 20
11, Oracle and/or its affiliates
. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
...
...
@@ -936,7 +936,7 @@ rw_lock_list_print_info(
info
=
UT_LIST_GET_FIRST
(
lock
->
debug_list
);
while
(
info
!=
NULL
)
{
rw_lock_debug_print
(
info
);
rw_lock_debug_print
(
file
,
info
);
info
=
UT_LIST_GET_NEXT
(
list
,
info
);
}
}
...
...
@@ -984,7 +984,7 @@ rw_lock_print(
info
=
UT_LIST_GET_FIRST
(
lock
->
debug_list
);
while
(
info
!=
NULL
)
{
rw_lock_debug_print
(
info
);
rw_lock_debug_print
(
stderr
,
info
);
info
=
UT_LIST_GET_NEXT
(
list
,
info
);
}
}
...
...
@@ -996,28 +996,29 @@ UNIV_INTERN
void
rw_lock_debug_print
(
/*================*/
FILE
*
f
,
/*!< in: output stream */
rw_lock_debug_t
*
info
)
/*!< in: debug struct */
{
ulint
rwt
;
rwt
=
info
->
lock_type
;
fprintf
(
stderr
,
"Locked: thread %lu file %s line %lu "
,
fprintf
(
f
,
"Locked: thread %lu file %s line %lu "
,
(
ulong
)
os_thread_pf
(
info
->
thread_id
),
info
->
file_name
,
(
ulong
)
info
->
line
);
if
(
rwt
==
RW_LOCK_SHARED
)
{
fputs
(
"S-LOCK"
,
stderr
);
fputs
(
"S-LOCK"
,
f
);
}
else
if
(
rwt
==
RW_LOCK_EX
)
{
fputs
(
"X-LOCK"
,
stderr
);
fputs
(
"X-LOCK"
,
f
);
}
else
if
(
rwt
==
RW_LOCK_WAIT_EX
)
{
fputs
(
"WAIT X-LOCK"
,
stderr
);
fputs
(
"WAIT X-LOCK"
,
f
);
}
else
{
ut_error
;
}
if
(
info
->
pass
!=
0
)
{
fprintf
(
stderr
,
" pass value %lu"
,
(
ulong
)
info
->
pass
);
fprintf
(
f
,
" pass value %lu"
,
(
ulong
)
info
->
pass
);
}
putc
(
'\n'
,
stderr
);
putc
(
'\n'
,
f
);
}
/***************************************************************//**
...
...
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