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
d5d2c4fa
Commit
d5d2c4fa
authored
Jun 15, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1 to mysql-5.5.
parents
7eddf251
a8629376
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
20 deletions
+22
-20
storage/innobase/btr/btr0cur.c
storage/innobase/btr/btr0cur.c
+2
-2
storage/innobase/include/rem0rec.h
storage/innobase/include/rem0rec.h
+2
-2
storage/innobase/include/rem0rec.ic
storage/innobase/include/rem0rec.ic
+2
-2
storage/innobase/include/univ.i
storage/innobase/include/univ.i
+2
-0
storage/innobase/row/row0row.c
storage/innobase/row/row0row.c
+4
-4
storage/innobase/row/row0vers.c
storage/innobase/row/row0vers.c
+8
-8
storage/innobase/trx/trx0rec.c
storage/innobase/trx/trx0rec.c
+2
-2
No files found.
storage/innobase/btr/btr0cur.c
View file @
d5d2c4fa
...
...
@@ -1989,9 +1989,9 @@ btr_cur_optimistic_update(
heap
=
mem_heap_create
(
1024
);
offsets
=
rec_get_offsets
(
rec
,
index
,
NULL
,
ULINT_UNDEFINED
,
&
heap
);
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
rec
,
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
#ifdef UNIV_DEBUG
if
(
btr_cur_print_record_ops
&&
thr
)
{
...
...
storage/innobase/include/rem0rec.h
View file @
d5d2c4fa
...
...
@@ -480,7 +480,7 @@ ulint
rec_offs_any_extern
(
/*================*/
const
ulint
*
offsets
);
/*!< in: array returned by rec_get_offsets() */
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
/******************************************************//**
Determine if the offsets are for a record containing null BLOB pointers.
@return first field containing a null BLOB pointer, or NULL if none found */
...
...
@@ -491,7 +491,7 @@ rec_offs_any_null_extern(
const
rec_t
*
rec
,
/*!< in: record */
const
ulint
*
offsets
)
/*!< in: rec_get_offsets(rec) */
__attribute__
((
nonnull
,
warn_unused_result
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
/******************************************************//**
Returns nonzero if the extern bit is set in nth field of rec.
@return nonzero if externally stored */
...
...
storage/innobase/include/rem0rec.ic
View file @
d5d2c4fa
...
...
@@ -1088,7 +1088,7 @@ rec_offs_any_extern(
return(UNIV_UNLIKELY(*rec_offs_base(offsets) & REC_OFFS_EXTERNAL));
}
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
/******************************************************//**
Determine if the offsets are for a record containing null BLOB pointers.
@return first field containing a null BLOB pointer, or NULL if none found */
...
...
@@ -1124,7 +1124,7 @@ rec_offs_any_null_extern(
return(NULL);
}
#endif /* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif /* UNIV_
BLOB_NULL
_DEBUG */
/******************************************************//**
Returns nonzero if the extern bit is set in nth field of rec.
...
...
storage/innobase/include/univ.i
View file @
d5d2c4fa
...
...
@@ -186,6 +186,8 @@ command. Not tested on Windows. */
debugging without UNIV_DEBUG */
#
define
UNIV_BLOB_LIGHT_DEBUG
/* Enable off-page column
debugging without UNIV_DEBUG */
#
define
UNIV_BLOB_NULL_DEBUG
/* Enable deep off-page
column debugging */
#
define
UNIV_DEBUG
/* Enable ut_ad() assertions
and disable UNIV_INLINE */
#
define
UNIV_DEBUG_LOCK_VALIDATE
/* Enable
...
...
storage/innobase/row/row0row.c
View file @
d5d2c4fa
...
...
@@ -200,13 +200,13 @@ row_build(
ut_ad
(
rec_offs_validate
(
rec
,
index
,
offsets
));
}
#if 0
/* defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT_DEBUG */
#if 0
&& defined UNIV_BLOB_NULL_DEBUG
/* This one can fail in trx_rollback_active() if
the server crashed during an insert before the
btr_store_big_rec_extern_fields() did mtr_commit()
all BLOB pointers to the clustered index record. */
ut_a(!rec_offs_any_null_extern(rec, offsets));
#endif /*
UNIV_DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif /*
0 && UNIV_BLOB_NULL
_DEBUG */
if
(
type
!=
ROW_COPY_POINTERS
)
{
/* Take a copy of rec to heap */
...
...
@@ -391,10 +391,10 @@ row_rec_to_index_entry(
rec
=
rec_copy
(
buf
,
rec
,
offsets
);
/* Avoid a debug assertion in rec_offs_validate(). */
rec_offs_make_valid
(
rec
,
index
,
offsets
);
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
}
else
{
ut_a
(
!
rec_offs_any_null_extern
(
rec
,
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
}
entry
=
row_rec_to_index_entry_low
(
rec
,
index
,
offsets
,
n_ext
,
heap
);
...
...
storage/innobase/row/row0vers.c
View file @
d5d2c4fa
...
...
@@ -550,10 +550,10 @@ row_vers_build_for_consistent_read(
/* The view already sees this version: we can
copy it to in_heap and return */
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
version
,
*
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
buf
=
mem_heap_alloc
(
in_heap
,
rec_offs_size
(
*
offsets
));
...
...
@@ -588,9 +588,9 @@ row_vers_build_for_consistent_read(
*
offsets
=
rec_get_offsets
(
prev_version
,
index
,
*
offsets
,
ULINT_UNDEFINED
,
offset_heap
);
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
prev_version
,
*
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
trx_id
=
row_get_rec_trx_id
(
prev_version
,
index
,
*
offsets
);
...
...
@@ -691,9 +691,9 @@ row_vers_build_for_semi_consistent_read(
/* We found a version that belongs to a
committed transaction: return it. */
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
version
,
*
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
if
(
rec
==
version
)
{
*
old_vers
=
rec
;
...
...
@@ -752,9 +752,9 @@ row_vers_build_for_semi_consistent_read(
version
=
prev_version
;
*
offsets
=
rec_get_offsets
(
version
,
index
,
*
offsets
,
ULINT_UNDEFINED
,
offset_heap
);
#if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
#if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
version
,
*
offsets
));
#endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
#endif
/* UNIV_
BLOB_NULL
_DEBUG */
}
/* for (;;) */
if
(
heap
)
{
...
...
storage/innobase/trx/trx0rec.c
View file @
d5d2c4fa
...
...
@@ -1593,9 +1593,9 @@ trx_undo_prev_version_build(
return
(
DB_ERROR
);
}
# if
defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT
_DEBUG
# if
def UNIV_BLOB_NULL
_DEBUG
ut_a
(
!
rec_offs_any_null_extern
(
rec
,
offsets
));
# endif
/* UNIV_
DEBUG || UNIV_BLOB_LIGHT
_DEBUG */
# endif
/* UNIV_
BLOB_NULL
_DEBUG */
if
(
row_upd_changes_field_size_or_external
(
index
,
offsets
,
update
))
{
ulint
n_ext
;
...
...
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