You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Set errno before returning.
This commit is contained in:
@ -241,6 +241,7 @@ int S3Storage::getObject(const string &_sourceKey, boost::shared_array<uint8_t>
|
||||
s3err_msgs[err], bucket.c_str(), sourceKey.c_str());
|
||||
if (skipRetryableErrors)
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
||||
sleep(5);
|
||||
@ -335,6 +336,7 @@ int S3Storage::putObject(const boost::shared_array<uint8_t> data, size_t len, co
|
||||
" Retrying...", s3err_msgs[s3err], bucket.c_str(), destKey.c_str());
|
||||
if (skipRetryableErrors)
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
||||
sleep(5);
|
||||
@ -373,6 +375,7 @@ int S3Storage::deleteObject(const string &_key)
|
||||
s3err_msgs[s3err], bucket.c_str(), key.c_str());
|
||||
if (skipRetryableErrors)
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
||||
sleep(5);
|
||||
@ -412,6 +415,7 @@ int S3Storage::copyObject(const string &_sourceKey, const string &_destKey)
|
||||
" destkey = %s. Retrying...", s3err_msgs[s3err], bucket.c_str(), sourceKey.c_str(), destKey.c_str());
|
||||
if (skipRetryableErrors)
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
||||
sleep(5);
|
||||
@ -465,6 +469,7 @@ int S3Storage::exists(const string &_key, bool *out)
|
||||
s3err_msgs[s3err], bucket.c_str(), key.c_str());
|
||||
if (skipRetryableErrors)
|
||||
{
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
}
|
||||
sleep(5);
|
||||
|
Reference in New Issue
Block a user