Skip to content

Commit

Permalink
Bug 1252, unifying JSON API around vBucket instead of vbucket
Browse files Browse the repository at this point in the history
Change-Id: I5da7051a6f286d3ee48e7898287ae2f3f6254263
Reviewed-on: http://review.northscale.com:8080/379
Reviewed-by: Dustin Sallings <dustin@spy.net>
Tested-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information
steveyen authored and dustin committed Jun 10, 2010
1 parent 2f89dc9 commit d8de04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vbucket.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static int populate_buckets(struct vbucket_config_st *vb, cJSON *c) {
}

static VBUCKET_CONFIG_HANDLE parse_cjson(cJSON *c) {
cJSON *body = cJSON_GetObjectItem(c, "vbucketServerMap");
cJSON *body = cJSON_GetObjectItem(c, "vBucketServerMap");
if (body != NULL) {
return parse_cjson(body); // Allows clients to have a JSON envelope.
}
Expand Down
4 changes: 2 additions & 2 deletions tests/testapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static const char *configFlat =

static const char *configInEnvelope =
"{ \"otherKeyThatIsIgnored\": 12345,\n"
"\"vbucketServerMap\": \n"
"\"vBucketServerMap\": \n"
"{\n"
" \"hashAlgorithm\": \"CRC\",\n"
" \"numReplicas\": 2,\n"
Expand All @@ -59,7 +59,7 @@ static const char *configInEnvelope2 =
"\"ports\":{\"proxy\":11213,\"direct\":11212},"
"\"uptime\":\"0\",\"memoryTotal\":0,\"memoryFree\":0,\"mcdMemoryReserved\":64,\"mcdMemoryAllocated\":0}],"
"\"stats\":{\"uri\":\"/pools/default/buckets/default/stats\"},"
"\"vbucketServerMap\": "
"\"vBucketServerMap\": "
"{"
" \"hashAlgorithm\": \"CRC\","
" \"numReplicas\": 2,"
Expand Down

0 comments on commit d8de04c

Please sign in to comment.