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
952b4b8d
Commit
952b4b8d
authored
Aug 01, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: lock_rec_print(), lock_table_print(), lock_rec_get_prev():
Add a const qualifier to lock_t*.
parent
85193022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
include/lock0lock.h
include/lock0lock.h
+4
-4
lock/lock0lock.c
lock/lock0lock.c
+15
-15
No files found.
include/lock0lock.h
View file @
952b4b8d
...
...
@@ -615,16 +615,16 @@ Prints info of a table lock. */
void
lock_table_print
(
/*=============*/
FILE
*
file
,
/* in: file where to print */
lock_t
*
lock
);
/* in: table type lock */
FILE
*
file
,
/* in: file where to print */
const
lock_t
*
lock
);
/* in: table type lock */
/*************************************************************************
Prints info of a record lock. */
void
lock_rec_print
(
/*===========*/
FILE
*
file
,
/* in: file where to print */
lock_t
*
lock
);
/* in: record type lock */
FILE
*
file
,
/* in: file where to print */
const
lock_t
*
lock
);
/* in: record type lock */
/*************************************************************************
Prints info of locks for all transactions. */
...
...
lock/lock0lock.c
View file @
952b4b8d
...
...
@@ -1360,18 +1360,18 @@ lock_rec_copy(
/*************************************************************************
Gets the previous record lock set on a record. */
static
lock_t
*
const
lock_t
*
lock_rec_get_prev
(
/*==============*/
/* out: previous lock on the same record, NULL if
none exists */
lock_t
*
in_lock
,
/* in: record lock */
ulint
heap_no
)
/* in: heap number of the record */
/* out: previous lock on the same
record, NULL if
none exists */
const
lock_t
*
in_lock
,
/* in: record lock */
ulint
heap_no
)
/* in: heap number of the record */
{
lock_t
*
lock
;
ulint
space
;
ulint
page_no
;
lock_t
*
found_lock
=
NULL
;
const
lock_t
*
lock
;
ulint
space
;
ulint
page_no
;
const
lock_t
*
found_lock
=
NULL
;
ut_ad
(
mutex_own
(
&
kernel_mutex
));
ut_ad
(
lock_get_type
(
in_lock
)
==
LOCK_REC
);
...
...
@@ -1394,7 +1394,7 @@ lock_rec_get_prev(
found_lock
=
lock
;
}
lock
=
lock_rec_get_next_on_page
(
lock
);
lock
=
lock_rec_get_next_on_page
(
(
lock_t
*
)
lock
);
}
}
...
...
@@ -3439,7 +3439,7 @@ lock_deadlock_recursive(
ut_ad
(
lock_get_type
(
lock
)
==
LOCK_REC
);
ut_a
(
bit_no
!=
ULINT_UNDEFINED
);
lock
=
lock_rec_get_prev
(
lock
,
bit_no
);
lock
=
(
lock_t
*
)
lock_rec_get_prev
(
lock
,
bit_no
);
}
if
(
lock
==
NULL
)
{
...
...
@@ -4191,8 +4191,8 @@ Prints info of a table lock. */
void
lock_table_print
(
/*=============*/
FILE
*
file
,
/* in: file where to print */
lock_t
*
lock
)
/* in: table type lock */
FILE
*
file
,
/* in: file where to print */
const
lock_t
*
lock
)
/* in: table type lock */
{
ut_ad
(
mutex_own
(
&
kernel_mutex
));
ut_a
(
lock_get_type
(
lock
)
==
LOCK_TABLE
);
...
...
@@ -4231,8 +4231,8 @@ Prints info of a record lock. */
void
lock_rec_print
(
/*===========*/
FILE
*
file
,
/* in: file where to print */
lock_t
*
lock
)
/* in: record type lock */
FILE
*
file
,
/* in: file where to print */
const
lock_t
*
lock
)
/* in: record type lock */
{
buf_block_t
*
block
;
ulint
space
;
...
...
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