@@ -256,7 +256,7 @@ Status CloudStorageWritableFileImpl::Sync() {
256256CloudStorageProvider::~CloudStorageProvider () {}
257257
258258Status CloudStorageProvider::Prepare (CloudEnv* env) {
259- Status status ;
259+ Status st ;
260260 if (env->HasDestBucket ()) {
261261 // create dest bucket if specified
262262 if (ExistsBucket (env->GetDestBucketName ()).ok ()) {
@@ -267,19 +267,19 @@ Status CloudStorageProvider::Prepare(CloudEnv* env) {
267267 Log (InfoLogLevel::INFO_LEVEL, env->info_log_ ,
268268 " [%s] Going to create bucket %s" , Name (),
269269 env->GetDestBucketName ().c_str ());
270- status = CreateBucket (env->GetDestBucketName ());
270+ st = CreateBucket (env->GetDestBucketName ());
271271 } else {
272- status = Status::NotFound (
272+ st = Status::NotFound (
273273 " Bucket not found and create_bucket_if_missing is false" );
274274 }
275- if (!status .ok ()) {
275+ if (!st .ok ()) {
276276 Log (InfoLogLevel::ERROR_LEVEL, env->info_log_ ,
277277 " [%s] Unable to create bucket %s %s" , Name (),
278- env->GetDestBucketName ().c_str (), status .ToString ().c_str ());
279- return status ;
278+ env->GetDestBucketName ().c_str (), st .ToString ().c_str ());
279+ return st ;
280280 }
281281 }
282- return status ;
282+ return st ;
283283}
284284
285285CloudStorageProviderImpl::CloudStorageProviderImpl () : rng_(time(nullptr )) {}
0 commit comments