Skip to content

Commit

Permalink
Merge pull request #232 from martinsumner/develop-2.9
Browse files Browse the repository at this point in the history
Add rt_enqueue messages
  • Loading branch information
martinsumner authored Feb 14, 2019
2 parents fec7a58 + 1f4b9b1 commit 21104a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/riak_kv.proto
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,21 @@ message RpbCoverageEntry {
optional bytes keyspace_desc = 3; // Some human readable description of the keyspace covered
required bytes cover_context = 4; // Opaque context to pass into 2I query.
}

// RT Enqueue Request - retrieve bucket/key and pop it on the RTQ
// NOTE: this is just a GET request minus some meaningless (in this
// context) options
message RpbRTEReq {
required bytes bucket = 1;
required bytes key = 2;
optional uint32 r = 3;
optional uint32 pr = 4;
optional bool basic_quorum = 5;
optional bool notfound_ok = 6;
optional uint32 timeout = 10;
optional bool sloppy_quorum = 11; // Experimental, may change/disappear
optional uint32 n_val = 12; // Experimental, may change/disappear
optional bytes type = 13; // Bucket type, if not set we assume the 'default' type
}

// RTE response - not defined, will return a RpbRTEResp on success or RpbErrorResp on failure
2 changes: 2 additions & 0 deletions src/riak_pb_messages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
102,TsCoverageEntry,riak_ts
103,TsRange,riak_ts
104,TsTtbMsg,riak_ts
200,RpbRTEReq,riak_kv
201,RpbRTEResp,riak_kv
253,RpbAuthReq,riak
254,RpbAuthResp,riak
255,RpbStartTls,riak

0 comments on commit 21104a0

Please sign in to comment.