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
931572df
Commit
931572df
authored
May 20, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: ha_innodb.cc: Add some missing function comments.
parent
4e652f12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
handler/ha_innodb.cc
handler/ha_innodb.cc
+35
-3
No files found.
handler/ha_innodb.cc
View file @
931572df
...
@@ -2776,6 +2776,8 @@ static const char* ha_innobase_exts[] = {
...
@@ -2776,6 +2776,8 @@ static const char* ha_innobase_exts[] = {
NullS
NullS
};
};
/********************************************************************
Returns the table type (storage engine name). */
UNIV_INTERN
UNIV_INTERN
const
char
*
const
char
*
ha_innobase
::
table_type
()
const
ha_innobase
::
table_type
()
const
...
@@ -2785,15 +2787,20 @@ ha_innobase::table_type() const
...
@@ -2785,15 +2787,20 @@ ha_innobase::table_type() const
return
(
innobase_hton_name
);
return
(
innobase_hton_name
);
}
}
/********************************************************************
Returns the index type. */
UNIV_INTERN
UNIV_INTERN
const
char
*
const
char
*
ha_innobase
::
index_type
(
uint
)
ha_innobase
::
index_type
(
/*=========================*/
/*====================*/
uint
)
/* out: index type */
/* out: index type */
{
{
return
(
"BTREE"
);
return
(
"BTREE"
);
}
}
/********************************************************************
Returns the table file name extension. */
UNIV_INTERN
UNIV_INTERN
const
char
**
const
char
**
ha_innobase
::
bas_ext
()
const
ha_innobase
::
bas_ext
()
const
...
@@ -2803,24 +2810,40 @@ ha_innobase::bas_ext() const
...
@@ -2803,24 +2810,40 @@ ha_innobase::bas_ext() const
return
(
ha_innobase_exts
);
return
(
ha_innobase_exts
);
}
}
/********************************************************************
Returns the operations supported for indexes. */
UNIV_INTERN
UNIV_INTERN
ulong
ulong
ha_innobase
::
index_flags
(
uint
,
uint
,
bool
)
const
ha_innobase
::
index_flags
(
/*=====================*/
/* out: flags of supported operations */
uint
,
uint
,
bool
)
const
{
{
return
(
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_ORDER
return
(
HA_READ_NEXT
|
HA_READ_PREV
|
HA_READ_ORDER
|
HA_READ_RANGE
|
HA_KEYREAD_ONLY
);
|
HA_READ_RANGE
|
HA_KEYREAD_ONLY
);
}
}
/********************************************************************
Returns the maximum number of keys. */
UNIV_INTERN
UNIV_INTERN
uint
uint
ha_innobase
::
max_supported_keys
()
const
ha_innobase
::
max_supported_keys
()
const
/*===================================*/
/* out: MAX_KEY */
{
{
return
(
MAX_KEY
);
return
(
MAX_KEY
);
}
}
/********************************************************************
Returns the maximum key length. */
UNIV_INTERN
UNIV_INTERN
uint
uint
ha_innobase
::
max_supported_key_length
()
const
ha_innobase
::
max_supported_key_length
()
const
/*=========================================*/
/* out: maximum supported key length, in bytes */
{
{
/* An InnoDB page must store >= 2 keys; a secondary key record
/* An InnoDB page must store >= 2 keys; a secondary key record
must also contain the primary key value: max key length is
must also contain the primary key value: max key length is
...
@@ -2830,23 +2853,32 @@ ha_innobase::max_supported_key_length() const
...
@@ -2830,23 +2853,32 @@ ha_innobase::max_supported_key_length() const
return
(
3500
);
return
(
3500
);
}
}
/********************************************************************
Returns the key map of keys that are usable for scanning. */
UNIV_INTERN
UNIV_INTERN
const
key_map
*
const
key_map
*
ha_innobase
::
keys_to_use_for_scanning
()
ha_innobase
::
keys_to_use_for_scanning
()
/* out: key_map_full */
{
{
return
(
&
key_map_full
);
return
(
&
key_map_full
);
}
}
/********************************************************************
Determines if table caching is supported. */
UNIV_INTERN
UNIV_INTERN
uint8
uint8
ha_innobase
::
table_cache_type
()
ha_innobase
::
table_cache_type
()
/* out: HA_CACHE_TBL_ASKTRANSACT */
{
{
return
(
HA_CACHE_TBL_ASKTRANSACT
);
return
(
HA_CACHE_TBL_ASKTRANSACT
);
}
}
/********************************************************************
Determines if the primary key is clustered index. */
UNIV_INTERN
UNIV_INTERN
bool
bool
ha_innobase
::
primary_key_is_clustered
()
ha_innobase
::
primary_key_is_clustered
()
/* out: true */
{
{
return
(
true
);
return
(
true
);
}
}
...
...
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