[Groonga-commit] groonga/groonga at 0212cc8 [master] doc: describe about return code about canceled request

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 29 15:40:16 JST 2014


Kouhei Sutou	2014-12-29 15:40:16 +0900 (Mon, 29 Dec 2014)

  New Revision: 0212cc8fabab24e9d99eb57dbfaf3545c721637c
  https://github.com/groonga/groonga/commit/0212cc8fabab24e9d99eb57dbfaf3545c721637c

  Message:
    doc: describe about return code about canceled request

  Modified files:
    doc/source/reference/commands/request_cancel.rst

  Modified: doc/source/reference/commands/request_cancel.rst (+11 -0)
===================================================================
--- doc/source/reference/commands/request_cancel.rst    2014-12-29 15:36:46 +0900 (8730748)
+++ doc/source/reference/commands/request_cancel.rst    2014-12-29 15:40:16 +0900 (6b282f1)
@@ -25,6 +25,10 @@ There are some limitations:
 
 See :doc:`/reference/command/request_id` about request ID.
 
+If request is canceled, the canceled request has ``-5``
+(``GRN_INTERRUPTED_FUNCTION_CALL``) as
+:doc:`/reference/command/return_code`.
+
 Syntax
 ------
 
@@ -71,6 +75,13 @@ changed to ``false`` from ``true``::
   [[...], {"id": "unique-id-1", "canceled": false}]
   # "select" is canceled or finished. ("canceled" is "false")
 
+If the ``select`` command is canceled, response of the ``select``
+command has ``-5`` (``GRN_INTERRUPTED_FUNCTION_CALL``) as
+:doc:`/reference/command/return_code`::
+
+  $ curl 'http://localhost:10041/d/select?table=LargeTable&filter=true&request_id=unique-id-1' &
+  [[-5, ...], ...]
+
 Parameters
 ----------
 
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index