Skip to content

Commit

Permalink
Merge branch 'master' into hotspot-2-formal
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz authored Sep 8, 2020
2 parents 1a0bb80 + 97343d2 commit a182110
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 0 deletions.
257 changes: 257 additions & 0 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: 28 additions & 0 deletions src/idl/rrdb.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ 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 @@ -277,6 +291,20 @@ struct duplicate_response
2: optional string error_hint;
}

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

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 a182110

Please sign in to comment.