Skip to content

Commit ebdc066

Browse files
author
zhoutongxi
committed
fix: follow reviewer's advice
1 parent 357a992 commit ebdc066

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/server/pegasus_server_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,9 +2751,9 @@ void pegasus_server_impl::update_app_envs_before_open_db(
27512751
update_validate_partition_hash(envs);
27522752
update_user_specified_compaction(envs);
27532753

2754-
// When backup cluster creates an app via duplication, if source app has env parameters about manual compact,
2754+
// When backup cluster creates an app via duplication, if source app has parameters about manual compact,
27552755
// incomplete replicas may start a manual compact. However, these replicas haven't opened rocksdb successfully yet,
2756-
// so we need to check if _db exists before starting manual compact to avoid coredump.
2756+
// so we need to check if _db exists before starting manual compact to avoid segmentation fault.
27572757
if (_db != nullptr) {
27582758
_manual_compact_svc.start_manual_compact_if_needed(envs);
27592759
}
@@ -3578,4 +3578,4 @@ dsn::replication::manual_compaction_status::type pegasus_server_impl::query_comp
35783578
return _manual_compact_svc.query_compact_status();
35793579
}
35803580

3581-
} // namespace pegasus::server
3581+
} // namespace pegasus::server

0 commit comments

Comments
 (0)