Sha256: 1f8cd5ed89f31eb989b93bbd673862eaea46d8722964557cfdafc6f0b9a5487a

Contents?: true

Size: 1.45 KB

Versions: 108

Compression:

Stored size: 1.45 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

Global configurations
=====================

Summary
-------

Groonga has the global configurations. You can access them by API.


Reference
---------

.. c:function:: int grn_get_lock_timeout(void)

   Returns the lock timeout.

   :c:type:`grn_ctx` acquires a lock for updating a shared value. If
   other :c:type:`grn_ctx` is already updating the same value,
   :c:type:`grn_ctx` that try to acquire a lock can't acquires a lock.
   The :c:type:`grn_ctx` that can't acquires a lock waits 1
   millisecond and try to acquire a lock again. The try is done
   ``timeout`` times. If the :c:type:`grn_ctx` that can't acquires a
   lock until ``timeout`` times, the tries are failed.

   The default lock timeout is ``10000000``. It means that Groonga
   doesn't report a lock failure until about 3 hours.  (1 * 10000000
   [msec] = 10000 [sec] = 166.666... [min] = 2.777... [hour])

   :return: The lock timeout.

.. c:function:: grn_rc grn_set_lock_timeout(int timeout)

   Sets the lock timeout.

   See :c:func:`grn_get_lock_timeout` about lock timeout.

   There are some special values for ``timeout``.

     * ``0``: It means that Groonga doesn't retry acquiring a lock.
       Groonga reports a failure after one lock acquirement failure.
     * negative value: It means that Groonga retries acquiring a lock
       until Groonga can acquire a lock.

   :param timeuot: The new lock timeout.
   :return: ``GRN_SUCCESS``. It doesn't fail.

Version data entries

108 entries across 54 versions & 1 rubygems

Version Path
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-7.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-7.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.3-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.1.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.9-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.9-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.7-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt
rroonga-6.0.7-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt