Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
feat(hotkey): Change RPC to query hotkey (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz authored Dec 24, 2020
1 parent ba19d04 commit 29c6ccc
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
15 changes: 12 additions & 3 deletions include/dsn/dist/replication/replication_types.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 30 additions & 3 deletions src/common/replication_types.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/replica/replica_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,6 @@ void replica_stub::on_group_bulk_load(group_bulk_load_rpc rpc)
}
}

// TODO: (Tangyanzhao) implement it later
void replica_stub::on_detect_hotkey(detect_hotkey_rpc rpc)
{
const auto &request = rpc.request();
Expand Down
4 changes: 3 additions & 1 deletion src/replication.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,8 @@ enum hotkey_type
enum detect_action
{
START,
STOP
STOP,
QUERY
}

enum disk_migration_status {
Expand All @@ -1167,6 +1168,7 @@ struct detect_hotkey_response {
// - ERR_SERVICE_ALREADY_EXIST: hotkey detection is running now
1: dsn.error_code err;
2: optional string err_hint;
3: optional string hotkey_result;
}

/*
Expand Down

0 comments on commit 29c6ccc

Please sign in to comment.