[Groonga-commit] groonga/gcs [master] Return 0 by searchableDocumentsCount if there is no context

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu Nov 1 11:42:35 JST 2012


YUKI Hiroshi	2012-11-01 11:42:35 +0900 (Thu, 01 Nov 2012)

  New Revision: 2702cfc9809fd4b5f332f74d3ea8f576b578f04c
  https://github.com/groonga/gcs/commit/2702cfc9809fd4b5f332f74d3ea8f576b578f04c

  Log:
    Return 0 by searchableDocumentsCount if there is no context

  Modified files:
    lib/database/domain.js

  Modified: lib/database/domain.js (+2 -0)
===================================================================
--- lib/database/domain.js    2012-11-01 11:40:04 +0900 (d97139f)
+++ lib/database/domain.js    2012-11-01 11:42:35 +0900 (20a94bd)
@@ -258,6 +258,8 @@ Domain.prototype = {
   },
 
   get searchableDocumentsCount() {
+    if (!this.context) return 0;
+
     var options = {
           table: this.tableName,
           limit: 0,
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る