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
e6c8f9fc
Commit
e6c8f9fc
authored
Sep 26, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtr_print(), mtr_memo_contains(): Disable unless #ifdef UNIV_DEBUG.
parent
82b74bc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
include/mtr0mtr.h
include/mtr0mtr.h
+2
-0
include/mtr0mtr.ic
include/mtr0mtr.ic
+2
-0
mtr/mtr0mtr.c
mtr/mtr0mtr.c
+2
-0
No files found.
include/mtr0mtr.h
View file @
e6c8f9fc
...
...
@@ -265,6 +265,7 @@ mtr_memo_release(
mtr_t
*
mtr
,
/* in: mtr */
void
*
object
,
/* in: object */
ulint
type
);
/* in: object type: MTR_MEMO_S_LOCK, ... */
#ifdef UNIV_DEBUG
/**************************************************************
Checks if memo contains the given item. */
UNIV_INLINE
...
...
@@ -282,6 +283,7 @@ void
mtr_print
(
/*======*/
mtr_t
*
mtr
);
/* in: mtr */
#endif
/* UNIV_DEBUG */
/*######################################################################*/
#define MTR_BUF_MEMO_SIZE 200
/* number of slots in memo */
...
...
include/mtr0mtr.ic
View file @
e6c8f9fc
...
...
@@ -113,6 +113,7 @@ mtr_release_s_latch_at_savepoint(
slot->object = NULL;
}
#ifdef UNIV_DEBUG
/**************************************************************
Checks if memo contains the given item. */
UNIV_INLINE
...
...
@@ -148,6 +149,7 @@ mtr_memo_contains(
return(FALSE);
}
#endif /* UNIV_DEBUG */
/*******************************************************************
Returns the log object of a mini-transaction buffer. */
...
...
mtr/mtr0mtr.c
View file @
e6c8f9fc
...
...
@@ -318,6 +318,7 @@ mtr_read_dulint(
return
(
mach_read_from_8
(
ptr
));
}
#ifdef UNIV_DEBUG
/*************************************************************
Prints info of an mtr handle. */
...
...
@@ -332,3 +333,4 @@ mtr_print(
(
ulong
)
dyn_array_get_data_size
(
&
(
mtr
->
memo
)),
(
ulong
)
dyn_array_get_data_size
(
&
(
mtr
->
log
)));
}
#endif
/* UNIV_DEBUG */
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