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
65b93cef
Commit
65b93cef
authored
Jun 25, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clang build
parent
1247b36b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
storage/maria/aria_s3_copy.cc
storage/maria/aria_s3_copy.cc
+1
-1
storage/maria/ha_s3.h
storage/maria/ha_s3.h
+16
-15
storage/maria/s3_func.c
storage/maria/s3_func.c
+1
-1
No files found.
storage/maria/aria_s3_copy.cc
View file @
65b93cef
...
@@ -155,7 +155,7 @@ extern "C" my_bool get_one_option(const struct my_option *opt
...
@@ -155,7 +155,7 @@ extern "C" my_bool get_one_option(const struct my_option *opt
}
}
static
void
get_options
(
register
int
*
argc
,
register
char
***
argv
)
static
void
get_options
(
int
*
argc
,
char
***
argv
)
{
{
int
ho_error
;
int
ho_error
;
...
...
storage/maria/ha_s3.h
View file @
65b93cef
...
@@ -30,52 +30,53 @@ class ha_s3 :public ha_maria
...
@@ -30,52 +30,53 @@ class ha_s3 :public ha_maria
ha_s3
(
handlerton
*
hton
,
TABLE_SHARE
*
table_arg
);
ha_s3
(
handlerton
*
hton
,
TABLE_SHARE
*
table_arg
);
~
ha_s3
()
{}
~
ha_s3
()
{}
int
create
(
const
char
*
name
,
TABLE
*
table_arg
,
HA_CREATE_INFO
*
ha_create_info
);
int
create
(
const
char
*
name
,
TABLE
*
table_arg
,
int
open
(
const
char
*
name
,
int
mode
,
uint
open_flags
);
HA_CREATE_INFO
*
ha_create_info
)
final
;
int
write_row
(
const
uchar
*
buf
);
int
open
(
const
char
*
name
,
int
mode
,
uint
open_flags
)
final
;
int
update_row
(
const
uchar
*
old_data
,
const
uchar
*
new_data
)
int
write_row
(
const
uchar
*
buf
)
final
;
int
update_row
(
const
uchar
*
old_data
,
const
uchar
*
new_data
)
final
{
{
DBUG_ENTER
(
"update_row"
);
DBUG_ENTER
(
"update_row"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
delete_row
(
const
uchar
*
buf
)
int
delete_row
(
const
uchar
*
buf
)
final
{
{
DBUG_ENTER
(
"delete_row"
);
DBUG_ENTER
(
"delete_row"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
check
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
check
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
final
{
{
DBUG_ENTER
(
"delete_row"
);
DBUG_ENTER
(
"delete_row"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
analyze
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
analyze
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
final
{
{
DBUG_ENTER
(
"analyze"
);
DBUG_ENTER
(
"analyze"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
repair
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
repair
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
final
{
{
DBUG_ENTER
(
"repair"
);
DBUG_ENTER
(
"repair"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
preload_keys
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
int
preload_keys
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
)
final
{
{
DBUG_ENTER
(
"preload_keys"
);
DBUG_ENTER
(
"preload_keys"
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
}
}
int
external_lock
(
THD
*
thd
,
int
lock_type
);
int
external_lock
(
THD
*
thd
,
int
lock_type
)
final
;
/*
/*
drop_table() is only used for internal temporary tables,
drop_table() is only used for internal temporary tables,
not applicable for s3
not applicable for s3
*/
*/
void
drop_table
(
const
char
*
name
)
void
drop_table
(
const
char
*
name
)
final
{
{
}
}
int
delete_table
(
const
char
*
name
);
int
delete_table
(
const
char
*
name
)
final
;
int
rename_table
(
const
char
*
from
,
const
char
*
to
);
int
rename_table
(
const
char
*
from
,
const
char
*
to
)
final
;
int
discover_check_version
()
override
;
int
discover_check_version
()
override
;
int
rebind
();
int
rebind
();
S3_INFO
*
s3_open_args
()
{
return
open_args
;
}
S3_INFO
*
s3_open_args
()
final
{
return
open_args
;
}
void
register_handler
(
MARIA_HA
*
file
);
void
register_handler
(
MARIA_HA
*
file
)
final
;
};
};
#endif
/* HA_S3_INCLUDED */
#endif
/* HA_S3_INCLUDED */
storage/maria/s3_func.c
View file @
65b93cef
...
@@ -1067,7 +1067,7 @@ int s3_delete_object(ms3_st *s3_client, const char *aws_bucket,
...
@@ -1067,7 +1067,7 @@ int s3_delete_object(ms3_st *s3_client, const char *aws_bucket,
const
char
*
name
,
myf
error_flags
)
const
char
*
name
,
myf
error_flags
)
{
{
uint8_t
error
;
uint8_t
error
;
int
result
;
int
result
=
0
;
DBUG_ENTER
(
"s3_delete_object"
);
DBUG_ENTER
(
"s3_delete_object"
);
DBUG_PRINT
(
"enter"
,
(
"name: %s"
,
name
));
DBUG_PRINT
(
"enter"
,
(
"name: %s"
,
name
));
...
...
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