Skip to content

Commit 3a2e5b6

Browse files
committed
refactor(FQDN): feather refactor on client and host_port.h
1 parent 0f8c9af commit 3a2e5b6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/meta/meta_data.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,11 @@ class app_state_helper
327327
app_state *owner{nullptr};
328328
std::atomic_int partitions_in_progress{0};
329329
std::vector<config_context> contexts;
330-
dsn::message_ex *pending_response;
330+
dsn::message_ex *pending_response{nullptr};
331331
std::vector<restore_state> restore_states;
332332
split_state split_states;
333333

334-
app_state_helper() : partitions_in_progress(0)
335-
{
336-
contexts.clear();
337-
pending_response = nullptr;
338-
}
334+
app_state_helper() = default;
339335
void on_init_partitions();
340336
void clear_proposals()
341337
{

src/meta/test/meta_data.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ TEST(meta_data, dropped_cmp)
4646
{
4747
host_port n;
4848

49-
dropped_replica d1, d2;
49+
dropped_replica d1;
50+
dropped_replica d2;
5051
// time not equal
5152
{
5253
d1 = {n, 10, 5, 5, 5};

0 commit comments

Comments
 (0)