summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-03-15 14:53:55 +0200
committerMonty <monty@mariadb.org>2021-04-08 13:03:31 +0300
commit6ace4a1a64348e8956adc1eb18e8927d4440485f (patch)
treeff4bed44a36c868196d6ed7398d4b228615ea105 /storage
parent8f2f61f7d39ca6068ba351d978002530fe643e86 (diff)
downloadmariadb-git-6ace4a1a64348e8956adc1eb18e8927d4440485f.tar.gz
Improved code comment and removed nop test
Diffstat (limited to 'storage')
-rw-r--r--storage/maria/ha_s3.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/storage/maria/ha_s3.cc b/storage/maria/ha_s3.cc
index b27afc2fcf7..e7428385a60 100644
--- a/storage/maria/ha_s3.cc
+++ b/storage/maria/ha_s3.cc
@@ -736,7 +736,15 @@ static int s3_hton_panic(handlerton *hton, ha_panic_function flag)
/**
- Check if a table is in S3 as part of discovery
+ Check if a table is in S3 as part of discovery. Returns TABLE_SHARE if found.
+
+ @param hton S3 handlerton
+ @param thd MariaDB thd
+ @param [out] share If table exists, this is updated to contain the found
+ TABLE_SHARE (based on the .frm in S3)
+
+ @return 0 Table exists
+ @return # Error number
*/
static int s3_discover_table(handlerton *hton, THD* thd, TABLE_SHARE *share)