Skip to content

Commit

Permalink
Fix more build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anand1976 committed Apr 15, 2024
1 parent a64a88a commit 0fc0a1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/db_impl/db_impl_follower.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ void DBImplFollower::PeriodicRefresh() {
s = TryCatchUpWithLeader();
if (s.ok()) {
ROCKS_LOG_INFO(immutable_db_options_.info_log,
"Successful catch up on attempt %lu", i);
"Successful catch up on attempt %llu",
static_cast<unsigned long long>(i));
break;
}
env_->SleepForMicroseconds(
Expand Down Expand Up @@ -201,7 +202,7 @@ Status DB::OpenAsFollower(
FileSystem* fs = db_options.env->GetFileSystem().get();
IOStatus io_s = fs->CreateDirIfMissing(dbname, IOOptions(), nullptr);
if (!io_s.ok()) {
return std::move(io_s);
return static_cast<Status>(io_s);
}
std::unique_ptr<Env> new_env(new CompositeEnvWrapper(
db_options.env, NewOnDemandFileSystem(db_options.env->GetFileSystem(),
Expand Down

0 comments on commit 0fc0a1a

Please sign in to comment.