Skip to content

Commit

Permalink
Merge pull request #253 from basho/mas-i1788-reconcileapi
Browse files Browse the repository at this point in the history
Add support for pushing to queue
  • Loading branch information
martinsumner authored Jul 15, 2021
2 parents 49acc53 + e191351 commit 3129374
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/riak_kv.proto
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ message RpbRTEReq {
// Fetch request - retrieve an object by a queue name.
message RpbFetchReq{
required bytes queuename = 1;
optional bytes encoding = 2;
}

// Fetch response - may be an empty queue, an object, a deleted tombstone
Expand All @@ -365,6 +366,22 @@ message RpbFetchResp{
optional uint32 crc_check = 3; // CRC check of encoded object
optional bytes replencoded_object = 4; // Special repl encoding using for object
optional bytes deleted_vclock = 5;
optional uint32 segment_id = 6;
optional uint32 segment_hash = 7;
}

// Push request - queue a list of keys for replication if at a given clock.
message RpbPushReq{
required bytes queuename = 1;
repeated RpbKeysValue keys_value = 2;
}

message RpbPushResp{
optional bytes queuename = 1;
required bool queue_exists = 2;
optional uint32 foldq_length = 10;
optional uint32 fsync_length = 11;
optional uint32 realt_length = 12;
}

// AAE Fold requests
Expand Down
2 changes: 2 additions & 0 deletions src/riak_pb_messages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
201,RpbRTEResp,riak_kv
202,RpbFetchReq,riak_kv
203,RpbFetchResp,riak_kv
204,RpbPushReq,riak_kv
205,RpbPushResp,riak_kv
210,RpbAaeFoldMergeRootNValReq,riak_kv
211,RpbAaeFoldMergeBranchNValReq,riak_kv
212,RpbAaeFoldFetchClocksNValReq,riak_kv
Expand Down

0 comments on commit 3129374

Please sign in to comment.