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
6c8cd22f
Commit
6c8cd22f
authored
Aug 06, 2019
by
Will DeVries
Committed by
Sergei Petrunia
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename some functions and fix formating issues.
parent
a336cb20
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
storage/clustrixdb/clustrix_connection.cc
storage/clustrixdb/clustrix_connection.cc
+12
-11
storage/clustrixdb/clustrix_connection.h
storage/clustrixdb/clustrix_connection.h
+6
-7
storage/clustrixdb/ha_clustrixdb.cc
storage/clustrixdb/ha_clustrixdb.cc
+9
-9
storage/clustrixdb/ha_clustrixdb_pushdown.cc
storage/clustrixdb/ha_clustrixdb_pushdown.cc
+2
-2
No files found.
storage/clustrixdb/clustrix_connection.cc
View file @
6c8cd22f
...
...
@@ -23,12 +23,12 @@ static const char charset_name[] = "utf8";
enum
clustrix_commands
{
CLUSTRIX_WRITE_ROW
=
1
,
CLUSTRIX_SCAN_
INIT
,
CLUSTRIX_SCAN_
TABLE
,
CLUSTRIX_SCAN_NEXT
,
CLUSTRIX_SCAN_STOP
,
CLUSTRIX_KEY_READ
,
CLUSTRIX_KEY_DELETE
,
CLUSTRIX_
QUERY_INIT
CLUSTRIX_
SCAN_QUERY
};
/****************************************************************************
...
...
@@ -316,14 +316,14 @@ int clustrix_connection::key_read(ulonglong clustrix_table_oid, uint index,
return
0
;
}
int
clustrix_connection
::
scan_
init
(
ulonglong
clustrix_table_oid
,
uint
index
,
int
clustrix_connection
::
scan_
table
(
ulonglong
clustrix_table_oid
,
uint
index
,
enum
sort_order
sort
,
MY_BITMAP
*
read_set
,
ulonglong
*
scan_refid
)
{
int
error_code
;
command_length
=
0
;
if
((
error_code
=
add_command_operand_uchar
(
CLUSTRIX_SCAN_
INIT
)))
if
((
error_code
=
add_command_operand_uchar
(
CLUSTRIX_SCAN_
TABLE
)))
return
error_code
;
if
((
error_code
=
add_command_operand_ulonglong
(
clustrix_table_oid
)))
...
...
@@ -367,15 +367,16 @@ int clustrix_connection::scan_init(ulonglong clustrix_table_oid, uint index,
* scan_refid id used to reference this scan later
* Used in pushdowns to initiate query scan.
**/
int
clustrix_connection
::
scan_query_init
(
String
&
stmt
,
uchar
*
fieldtype
,
uint
fields
,
uchar
*
null_bits
,
uint
null_bits_size
,
uchar
*
field_metadata
,
uint
field_metadata_size
,
ulonglong
*
scan_refid
)
int
clustrix_connection
::
scan_query
(
String
&
stmt
,
uchar
*
fieldtype
,
uint
fields
,
uchar
*
null_bits
,
uint
null_bits_size
,
uchar
*
field_metadata
,
uint
field_metadata_size
,
ulonglong
*
scan_refid
)
{
int
error_code
;
command_length
=
0
;
if
((
error_code
=
add_command_operand_uchar
(
CLUSTRIX_
QUERY_INIT
)))
if
((
error_code
=
add_command_operand_uchar
(
CLUSTRIX_
SCAN_QUERY
)))
return
error_code
;
if
((
error_code
=
add_command_operand_str
((
uchar
*
)
stmt
.
ptr
(),
stmt
.
length
())))
...
...
storage/clustrixdb/clustrix_connection.h
View file @
6c8cd22f
...
...
@@ -93,13 +93,12 @@ class clustrix_connection
uchar
**
rowdata
,
ulong
*
rowdata_length
);
enum
sort_order
{
SORT_NONE
=
0
,
SORT_ASC
=
1
,
SORT_DESC
=
2
};
int
scan_
init
(
ulonglong
clustrix_table_oid
,
uint
index
,
int
scan_
table
(
ulonglong
clustrix_table_oid
,
uint
index
,
enum
sort_order
sort
,
MY_BITMAP
*
read_set
,
ulonglong
*
scan_refid
);
int
scan_next
(
ulonglong
scan_refid
,
uchar
**
rowdata
,
ulong
*
rowdata_length
);
int
scan_end
(
ulonglong
scan_refid
);
int
scan_query_init
(
String
&
stmt
,
uchar
*
fieldtype
,
uint
fields
,
uchar
*
null_bits
,
int
scan_query
(
String
&
stmt
,
uchar
*
fieldtype
,
uint
fields
,
uchar
*
null_bits
,
uint
null_bits_size
,
uchar
*
field_metadata
,
uint
field_metadata_size
,
ulonglong
*
scan_refid
);
...
...
storage/clustrixdb/ha_clustrixdb.cc
View file @
6c8cd22f
...
...
@@ -586,9 +586,9 @@ int ha_clustrixdb::index_first(uchar *buf)
bitmap_set_all
(
&
scan_fields
);
#endif
if
((
error_code
=
trx
->
scan_
init
(
clustrix_table_oid
,
active_index
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
if
((
error_code
=
trx
->
scan_
table
(
clustrix_table_oid
,
active_index
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
return
error_code
;
...
...
@@ -619,9 +619,9 @@ int ha_clustrixdb::index_last(uchar *buf)
bitmap_set_all
(
&
scan_fields
);
#endif
if
((
error_code
=
trx
->
scan_
init
(
clustrix_table_oid
,
active_index
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
if
((
error_code
=
trx
->
scan_
table
(
clustrix_table_oid
,
active_index
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
return
error_code
;
...
...
@@ -686,9 +686,9 @@ int ha_clustrixdb::rnd_init(bool scan)
bitmap_set_all
(
&
scan_fields
);
#endif
if
((
error_code
=
trx
->
scan_
init
(
clustrix_table_oid
,
0
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
if
((
error_code
=
trx
->
scan_
table
(
clustrix_table_oid
,
0
,
clustrix_connection
::
SORT_NONE
,
&
scan_fields
,
&
scan_refid
)))
return
error_code
;
return
0
;
...
...
storage/clustrixdb/ha_clustrixdb_pushdown.cc
View file @
6c8cd22f
...
...
@@ -128,7 +128,7 @@ create_clustrixdb_select_handler(THD* thd, SELECT_LEX* select_lex)
if
(
!
trx
)
goto
err
;
if
((
error_code
=
trx
->
scan_query
_init
(
query
,
fieldtype
,
items_number
,
if
((
error_code
=
trx
->
scan_query
(
query
,
fieldtype
,
items_number
,
null_bits
,
num_null_bytes
,
field_metadata
,
field_metadata_size
,
&
scan_refid
)))
{
goto
err
;
}
...
...
@@ -312,7 +312,7 @@ create_clustrixdb_derived_handler(THD* thd, TABLE_LIST *derived)
if
(
!
trx
)
goto
err
;
if
((
error_code
=
trx
->
scan_query
_init
(
query
,
fieldtype
,
items_number
,
if
((
error_code
=
trx
->
scan_query
(
query
,
fieldtype
,
items_number
,
null_bits
,
num_null_bytes
,
field_metadata
,
field_metadata_size
,
&
scan_refid
)))
{
goto
err
;
}
...
...
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