Skip to content

Commit

Permalink
Move bucket properties messages to riak.proto.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Feb 14, 2013
1 parent dfbc13e commit f567007
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
27 changes: 26 additions & 1 deletion src/riak.proto
Expand Up @@ -22,7 +22,7 @@
*/ */


/* /*
** Revision: 1.2 ** Revision: 1.4
*/ */


// Java package specifiers // Java package specifiers
Expand All @@ -47,3 +47,28 @@ message RpbPair {
required bytes key = 1; required bytes key = 1;
optional bytes value = 2; optional bytes value = 2;
} }


// Get bucket properties request
message RpbGetBucketReq {
required bytes bucket = 1;
}

// Get bucket properties response
message RpbGetBucketResp {
required RpbBucketProps props = 1;
}

// Set bucket properties request
message RpbSetBucketReq {
required bytes bucket = 1;
required RpbBucketProps props = 2;
}

// Set bucket properties response - no message defined, just send RpbSetBucketResp

// Bucket properties
message RpbBucketProps {
optional uint32 n_val = 1;
optional bool allow_mult = 2;
}
25 changes: 0 additions & 25 deletions src/riak_kv.proto
Expand Up @@ -122,25 +122,6 @@ message RpbListKeysResp {
optional bool done = 2; optional bool done = 2;
} }


// Get bucket properties request
message RpbGetBucketReq {
required bytes bucket = 1;
}

// Get bucket properties response
message RpbGetBucketResp {
required RpbBucketProps props = 1;
}

// Set bucket properties request
message RpbSetBucketReq {
required bytes bucket = 1;
required RpbBucketProps props = 2;
}


// Set bucket properties response - no message defined, just send RpbSetBucketResp



// Map/Reduce request // Map/Reduce request
message RpbMapRedReq { message RpbMapRedReq {
Expand Down Expand Up @@ -199,9 +180,3 @@ message RpbLink {
optional bytes key = 2; optional bytes key = 2;
optional bytes tag = 3; optional bytes tag = 3;
} }

// Bucket properties
message RpbBucketProps {
optional uint32 n_val = 1;
optional bool allow_mult = 2;
}

0 comments on commit f567007

Please sign in to comment.