Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(hotspot): add a function to start hotkey detecting in shell commands #605

Merged
merged 15 commits into from
Sep 29, 2020

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Sep 21, 2020

What problem does this PR solve?

add a function to start and stop hotkey detecting in shell commands

Because of the file structure, it's difficult to reuse code in hotspot_partition_calculator::send_hotkey_detect_request, so I reimplemented a code in client to send the RPC

src/client_lib/pegasus_client_impl.cpp Outdated Show resolved Hide resolved
src/shell/commands/data_operations.cpp Outdated Show resolved Hide resolved
src/shell/commands/data_operations.cpp Outdated Show resolved Hide resolved
src/client_lib/pegasus_client_impl.h Outdated Show resolved Hide resolved
src/shell/commands/data_operations.cpp Outdated Show resolved Hide resolved
src/client_lib/pegasus_client_impl.cpp Outdated Show resolved Hide resolved
src/client_lib/pegasus_client_impl.cpp Outdated Show resolved Hide resolved
src/client_lib/pegasus_client_impl.cpp Outdated Show resolved Hide resolved
src/client_lib/pegasus_client_impl.h Outdated Show resolved Hide resolved
src/include/rrdb/rrdb.code.definition.h Outdated Show resolved Hide resolved
src/include/rrdb/rrdb.client.h Outdated Show resolved Hide resolved
@Smityz Smityz marked this pull request as draft September 22, 2020 07:37
@Smityz Smityz marked this pull request as ready for review September 23, 2020 05:44
src/shell/main.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/server/pegasus_read_service.h Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/server/pegasus_server_impl.cpp Outdated Show resolved Hide resolved
@Smityz Smityz marked this pull request as draft September 23, 2020 08:06
@Smityz Smityz marked this pull request as ready for review September 28, 2020 07:54
@@ -35,6 +35,7 @@

#include "command_executor.h"
#include "command_utils.h"
#include "validate_utils.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you add #include "validate_utils.h" here?

src/shell/validate_utils.cpp Outdated Show resolved Hide resolved
src/shell/validate_utils.h Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/command_utils.h Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
format
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/commands/detect_hotkey.cpp Outdated Show resolved Hide resolved
src/shell/main.cpp Outdated Show resolved Hide resolved
src/shell/main.cpp Outdated Show resolved Hide resolved
@levy5307 levy5307 merged commit e147550 into apache:master Sep 29, 2020
@Smityz Smityz deleted the hotkey-shell branch October 20, 2020 09:24
@neverchanje neverchanje mentioned this pull request Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants