summaryrefslogtreecommitdiff
path: root/storage/innobase/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-10-05 08:09:49 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-10-05 08:09:49 +0300
commit444c380ceb26895748ce50c50be3f839393ebfd7 (patch)
tree65b1fbf3b7caec3de48c1f76de4614a2d9793a8d /storage/innobase/include
parent55dd0776566000c5ea12e177df0c784b500ab7c1 (diff)
parent941ca92a2ca3990020b23bcc92e7ca98dcc8f814 (diff)
downloadmariadb-git-444c380ceb26895748ce50c50be3f839393ebfd7.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'storage/innobase/include')
-rw-r--r--storage/innobase/include/dict0mem.h2
-rw-r--r--storage/innobase/include/rem0rec.h11
-rw-r--r--storage/innobase/include/rem0rec.ic15
-rw-r--r--storage/innobase/include/row0row.h8
-rw-r--r--storage/innobase/include/row0row.ic4
-rw-r--r--storage/innobase/include/univ.i4
6 files changed, 10 insertions, 34 deletions
diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h
index 3e06def55b0..adf0ea9e6c3 100644
--- a/storage/innobase/include/dict0mem.h
+++ b/storage/innobase/include/dict0mem.h
@@ -601,7 +601,7 @@ struct dict_col_t{
} def_val;
/** Retrieve the column name.
- @param[in] table table name */
+ @param[in] table the table of this column */
const char* name(const dict_table_t& table) const;
/** @return whether this is a virtual column */
diff --git a/storage/innobase/include/rem0rec.h b/storage/innobase/include/rem0rec.h
index c1eae387377..a3bd2c8cb50 100644
--- a/storage/innobase/include/rem0rec.h
+++ b/storage/innobase/include/rem0rec.h
@@ -642,17 +642,6 @@ rec_offs_any_null_extern(
const ulint* offsets) /*!< in: rec_get_offsets(rec) */
MY_ATTRIBUTE((warn_unused_result));
-/******************************************************//**
-Returns nonzero if the extern bit is set in nth field of rec.
-@return nonzero if externally stored */
-UNIV_INLINE
-ulint
-rec_offs_nth_extern_old(
-/*================*/
- const rec_t* rec, /*!< in: record */
- ulint n /*!< in: index of the field */)
- MY_ATTRIBUTE((warn_unused_result));
-
/** Mark the nth field as externally stored.
@param[in] offsets array returned by rec_get_offsets()
@param[in] n nth field */
diff --git a/storage/innobase/include/rem0rec.ic b/storage/innobase/include/rem0rec.ic
index 5e9dbcdcfb6..41794582f37 100644
--- a/storage/innobase/include/rem0rec.ic
+++ b/storage/innobase/include/rem0rec.ic
@@ -956,21 +956,6 @@ rec_offs_any_null_extern(
}
/******************************************************//**
-Returns nonzero if the extern bit is set in nth field of rec.
-@return nonzero if externally stored */
-UNIV_INLINE
-ulint
-rec_offs_nth_extern_old(
-/*================*/
- const rec_t* rec, /*!< in: record */
- ulint n /*!< in: index of the field */)
-{
- if(rec_get_1byte_offs_flag(rec))
- return 0;
- return (rec_2_get_field_end_info(rec,n) & REC_2BYTE_EXTERN_MASK);
-}
-
-/******************************************************//**
Gets the physical size of a field.
@return length of field */
UNIV_INLINE
diff --git a/storage/innobase/include/row0row.h b/storage/innobase/include/row0row.h
index 1f37a6b02d7..3f8d0e9b254 100644
--- a/storage/innobase/include/row0row.h
+++ b/storage/innobase/include/row0row.h
@@ -90,8 +90,8 @@ row_build_index_entry_low(
inserted or purged */
const row_ext_t* ext, /*!< in: externally stored column
prefixes, or NULL */
- dict_index_t* index, /*!< in: index on the table */
- mem_heap_t* heap, /*!< in: memory heap from which
+ const dict_index_t* index, /*!< in: index on the table */
+ mem_heap_t* heap, /*!< in,out: memory heap from which
the memory for the index entry
is allocated */
ulint flag) /*!< in: ROW_BUILD_NORMAL,
@@ -112,8 +112,8 @@ row_build_index_entry(
inserted or purged */
const row_ext_t* ext, /*!< in: externally stored column
prefixes, or NULL */
- dict_index_t* index, /*!< in: index on the table */
- mem_heap_t* heap) /*!< in: memory heap from which
+ const dict_index_t* index, /*!< in: index on the table */
+ mem_heap_t* heap) /*!< in,out: memory heap from which
the memory for the index entry
is allocated */
MY_ATTRIBUTE((warn_unused_result, nonnull(1,3,4)));
diff --git a/storage/innobase/include/row0row.ic b/storage/innobase/include/row0row.ic
index a7c0f2551b5..e1a3b5f6a1a 100644
--- a/storage/innobase/include/row0row.ic
+++ b/storage/innobase/include/row0row.ic
@@ -119,8 +119,8 @@ row_build_index_entry(
inserted or purged */
const row_ext_t* ext, /*!< in: externally stored column
prefixes, or NULL */
- dict_index_t* index, /*!< in: index on the table */
- mem_heap_t* heap) /*!< in: memory heap from which
+ const dict_index_t* index, /*!< in: index on the table */
+ mem_heap_t* heap) /*!< in,out: memory heap from which
the memory for the index entry
is allocated */
{
diff --git a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i
index bf1d245a65e..4acedc0e0f1 100644
--- a/storage/innobase/include/univ.i
+++ b/storage/innobase/include/univ.i
@@ -104,7 +104,6 @@ support cross-platform development and expose comonly used SQL names. */
#endif
#include <stdint.h>
-#define __STDC_FORMAT_MACROS /* Enable C99 printf format macros */
#include <inttypes.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -421,6 +420,7 @@ typedef ssize_t lint;
# define INT64PF "%lld"
# define UINT64scan "llu"
# define UINT64PFx "%016llx"
+# define TIMETPF "%ld"
#elif defined __APPLE__
/* Apple prefers to call the 64-bit types 'long long'
in both 32-bit and 64-bit environments. */
@@ -428,12 +428,14 @@ in both 32-bit and 64-bit environments. */
# define INT64PF "%lld"
# define UINT64scan "llu"
# define UINT64PFx "%016llx"
+# define TIMETPF "%" PRIdFAST32
#else
/* Use the integer types and formatting strings defined in the C99 standard. */
# define UINT32PF "%" PRIu32
# define INT64PF "%" PRId64
# define UINT64scan PRIu64
# define UINT64PFx "%016" PRIx64
+# define TIMETPF "%" PRIdFAST32
#endif
#ifdef UNIV_INNOCHECKSUM