Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Jul 30, 2024
1 parent d90465b commit 4cac172
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/replica/replica_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,11 +729,11 @@ void replica_stub::initialize(const replication_options &opts, bool clear /* = f
std::chrono::seconds(FLAGS_disk_stat_interval_seconds));
}

// attach reps
// Attach `reps`.
_replicas = std::move(reps);
METRIC_VAR_INCREMENT_BY(total_replicas, _replicas.size());
for (const auto &kv : _replicas) {
_fs_manager.add_replica(kv.first, kv.second->dir());
for (const auto &[pid, rep] : _replicas) {
_fs_manager.add_replica(pid, rep->dir());
}

_nfs = dsn::nfs_node::create();
Expand Down

0 comments on commit 4cac172

Please sign in to comment.