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
1e6ac944
Commit
1e6ac944
authored
Dec 11, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the comment of row_vers_impl_x_locked()
parent
bdeb27a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
34 deletions
+35
-34
storage/innobase/include/row0vers.h
storage/innobase/include/row0vers.h
+10
-10
storage/innobase/row/row0vers.cc
storage/innobase/row/row0vers.cc
+25
-24
No files found.
storage/innobase/include/row0vers.h
View file @
1e6ac944
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -38,19 +39,18 @@ Created 2/6/1997 Heikki Tuuri
// Forward declaration
class
ReadView
;
/*****************************************************************//**
Finds out if an active transaction has inserted or modified a secondary
/** Determine if an active transaction has inserted or modified a secondary
index record.
@return 0 if committed, else the active transaction id;
NOTE that this function can return false positives but never false
negatives. The caller must confirm all positive results by calling
trx_is_active() while holding lock_sys->mutex. */
@param[in] rec secondary index record
@param[in] index secondary index
@param[in] offsets rec_get_offsets(rec, index)
@return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
trx_t
*
row_vers_impl_x_locked
(
/*===================*/
const
rec_t
*
rec
,
/*!< in: record in a secondary index */
dict_index_t
*
index
,
/*!< in: the secondary index */
const
ulint
*
offsets
);
/*!< in: rec_get_offsets(rec, index) */
const
rec_t
*
rec
,
dict_index_t
*
index
,
const
ulint
*
offsets
);
/*****************************************************************//**
Finds out if we must preserve a delete marked earlier version of a clustered
...
...
storage/innobase/row/row0vers.cc
View file @
1e6ac944
/*****************************************************************************
Copyright (c) 1997, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation
Copyright (c) 2017, MariaDB Corporation
.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -63,23 +63,25 @@ row_vers_non_vc_match(
const
dtuple_t
*
ientry
,
mem_heap_t
*
heap
,
ulint
*
n_non_v_col
);
/*****************************************************************//**
Finds out if an active transaction has inserted or modified a secondary
/** Determine if an active transaction has inserted or modified a secondary
index record.
@return 0 if committed, else the active transaction id;
NOTE that this function can return false positives but never false
negatives. The caller must confirm all positive results by calling
trx_is_active() while holding lock_sys->mutex. */
@param[in] clust_rec clustered index record
@param[in] clust_index clustered index
@param[in] rec secondary index record
@param[in] index secondary index
@param[in] offsets rec_get_offsets(rec, index)
@param[in,out] mtr mini-transaction
@return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
UNIV_INLINE
trx_t
*
row_vers_impl_x_locked_low
(
/*=======================*/
const
rec_t
*
clust_rec
,
/*!< in: clustered index record */
dict_index_t
*
clust_index
,
/*!< in: the clustered index */
const
rec_t
*
rec
,
/*!< in: secondary index record */
dict_index_t
*
index
,
/*!< in: the secondary index */
const
ulint
*
offsets
,
/*!< in: rec_get_offsets(rec, index) */
mtr_t
*
mtr
)
/*!< in/out: mini-transaction */
const
rec_t
*
clust_rec
,
dict_index_t
*
clust_index
,
const
rec_t
*
rec
,
dict_index_t
*
index
,
const
ulint
*
offsets
,
mtr_t
*
mtr
)
{
trx_id_t
trx_id
;
ibool
corrupt
;
...
...
@@ -325,19 +327,18 @@ row_vers_impl_x_locked_low(
DBUG_RETURN
(
trx
);
}
/*****************************************************************//**
Finds out if an active transaction has inserted or modified a secondary
/** Determine if an active transaction has inserted or modified a secondary
index record.
@return 0 if committed, else the active transaction id;
NOTE that this function can return false positives but never false
negatives. The caller must confirm all positive results by calling
trx_is_active() while holding lock_sys->mutex. */
@param[in] rec secondary index record
@param[in] index secondary index
@param[in] offsets rec_get_offsets(rec, index)
@return the active transaction; trx_release_reference() must be invoked
@retval NULL if the record was committed */
trx_t
*
row_vers_impl_x_locked
(
/*===================*/
const
rec_t
*
rec
,
/*!< in: record in a secondary index */
dict_index_t
*
index
,
/*!< in: the secondary index */
const
ulint
*
offsets
)
/*!< in: rec_get_offsets(rec, index) */
const
rec_t
*
rec
,
dict_index_t
*
index
,
const
ulint
*
offsets
)
{
mtr_t
mtr
;
trx_t
*
trx
;
...
...
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