Skip to content

Commit ebb58ff

Browse files
committed
Rename status variable for funky compiler.
1 parent 6cc9f3b commit ebb58ff

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

cloud/cloud_log_controller.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ Status CloudLogControllerImpl::Initialize(CloudEnv* env) {
5454
cache_dir_ = bucket_dir + pathsep + uid;
5555

5656
// Create temporary directories.
57-
Status status = env_->GetBaseEnv()->CreateDirIfMissing(kCacheDir);
58-
if (status.ok()) {
59-
status = env_->GetBaseEnv()->CreateDirIfMissing(bucket_dir);
57+
Status st = env_->GetBaseEnv()->CreateDirIfMissing(kCacheDir);
58+
if (st.ok()) {
59+
st = env_->GetBaseEnv()->CreateDirIfMissing(bucket_dir);
6060
}
61-
if (status.ok()) {
62-
status = env_->GetBaseEnv()->CreateDirIfMissing(cache_dir_);
61+
if (st.ok()) {
62+
st = env_->GetBaseEnv()->CreateDirIfMissing(cache_dir_);
6363
}
64-
return status;
64+
return st;
6565
}
6666

6767
Status CloudLogControllerImpl::Prepare(CloudEnv* env) {

cloud/cloud_storage_provider.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Status CloudStorageWritableFileImpl::Sync() {
256256
CloudStorageProvider::~CloudStorageProvider() {}
257257

258258
Status 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

285285
CloudStorageProviderImpl::CloudStorageProviderImpl() : rng_(time(nullptr)) {}

0 commit comments

Comments
 (0)