YUKI Hiroshi
null+****@clear*****
Wed Jan 29 13:36:17 JST 2014
YUKI Hiroshi 2014-01-29 13:36:17 +0900 (Wed, 29 Jan 2014) New Revision: 20c328bc30567346e33b8135c4d9c74e6e2a3c0b https://github.com/droonga/droonga.org/commit/20c328bc30567346e33b8135c4d9c74e6e2a3c0b Message: Don't use the term "database" because commands can be handled by handler itself. Modified files: reference/message/index.md Modified: reference/message/index.md (+6 -6) =================================================================== --- reference/message/index.md 2014-01-29 13:24:06 +0900 (d13789e) +++ reference/message/index.md 2014-01-29 13:36:17 +0900 (c86d7f5) @@ -83,7 +83,7 @@ The basic format of a response message is like following: "inReplyTo" : "<ID of the related request message>", "statusCode" : <Status code>, "body" : <Body of the message>, - "errors" : <Errors from databases> + "errors" : <Errors from nodes> } ### `type` {#response-type} @@ -126,12 +126,12 @@ Value ### `errors` {#response-errors} Abstract -: All errors from databases. +: All errors from nodes. Value : Object. -This information will appear only when the command is distributed to multiple databases (partitions/replications) and they returned errors. Otherwise, the response message will have no `errors` field. For more details, see [the "Error response" section](#error). +This information will appear only when the command is distributed to multiple nodes (partitions/replications) and they returned errors. Otherwise, the response message will have no `errors` field. For more details, see [the "Error response" section](#error). ## Error response {#error} @@ -139,7 +139,7 @@ Some commands can return an error response. An error response has the `type` same to a regular response, but it has different `statusCode` and `body`. General type of the error is indicated by the `statusCode`, and details are reported as the `body`. -If a command is distributed to multiple databases (partitions/replications) and they return errors, then the response message will have an `error` field. All errors from all databases are stored to the field, like: +If a command is distributed to multiple nodes (partitions/replications) and they return errors, then the response message will have an `error` field. All errors from all nodes are stored to the field, like: { "type" : "add.result", @@ -150,14 +150,14 @@ If a command is distributed to multiple databases (partitions/replications) and "message": ... }, "errors" : { - "/path/to/the/database1" : { + "/path/to/the/node1" : { "statusCode" : 400, "body" : { "name": "UnknownTable", "message": ... } }, - "/path/to/the/database2" : { + "/path/to/the/node2" : { "statusCode" : 400, "body" : { "name": "UnknownTable", -------------- next part -------------- HTML����������������������������...Download