Skip to content

Commit

Permalink
refactor(hotspot): remove hotkey_detect_request in rrdb.thrift (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz authored Oct 4, 2020
1 parent e147550 commit 74d577e
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 442 deletions.
257 changes: 0 additions & 257 deletions src/base/rrdb_types.cpp

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

28 changes: 0 additions & 28 deletions src/idl/rrdb.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ enum mutate_operation
MO_DELETE
}

enum hotkey_type
{
READ,
WRITE
}

enum hotkey_detect_action
{
START,
STOP
}



struct update_request
{
1:dsn.blob key;
Expand Down Expand Up @@ -291,20 +277,6 @@ struct duplicate_response
2: optional string error_hint;
}

struct hotkey_detect_request {
1: hotkey_type type
2: hotkey_detect_action action
}

struct hotkey_detect_response {
// Possible error:
// - ERR_OK: start/stop hotkey detect succeed
// - ERR_SERVICE_NOT_FOUND: wrong rpc type
// - ERR_SERVICE_ALREADY_EXIST: hotkey detection is running now
1: i32 err;
2: optional string err_hint;
}

service rrdb
{
update_response put(1:update_request update);
Expand Down
Loading

0 comments on commit 74d577e

Please sign in to comment.