Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan authored and wangdan committed Aug 23, 2024
1 parent 3796a9f commit fe1bfd2
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 fe1bfd2

Please sign in to comment.