Skip to content

Commit

Permalink
fix clang tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniofilipovic committed Jun 7, 2024
1 parent 76a574e commit f1a9426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coordination/coordinator_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CoordinatorStateMachine::CoordinatorStateMachine(LoggerWrapper logger,

logger_.Log(nuraft_log_level::INFO, "Restoring coordinator state machine with durability.");

bool successful_migration =
bool const successful_migration =
HandleMigration(log_store_durability->stored_log_store_version_, log_store_durability->active_log_store_version_);

MG_ASSERT(successful_migration, "Couldn't handle migration of log store version.");
Expand Down Expand Up @@ -272,7 +272,7 @@ auto CoordinatorStateMachine::save_logical_snp_obj(snapshot &snapshot, ulong &ob
fmt::format("Save logical snapshot object, obj_id={}, is_first_obj={}, is_last_obj={}", obj_id,
is_first_obj, is_last_obj));

ptr<buffer> snp_buf = snapshot.serialize();
ptr<buffer> const snp_buf = snapshot.serialize();
auto ss = snapshot::deserialize(*snp_buf);
if (obj_id == 0) {
CreateSnapshotInternal(ss);
Expand Down

0 comments on commit f1a9426

Please sign in to comment.