[Groonga-commit] groonga/gcs [master] Validate options with both pending and stored options

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Dec 5 15:29:08 JST 2012


YUKI Hiroshi	2012-12-05 15:29:08 +0900 (Wed, 05 Dec 2012)

  New Revision: 95574bf64b42c0bb9fa865174325a8b86187af51
  https://github.com/groonga/gcs/commit/95574bf64b42c0bb9fa865174325a8b86187af51

  Log:
    Validate options with both pending and stored options
    
    In old revisions, validateOptions couldn't detect pending option which conflict to exsiting (sotred) options.

  Modified files:
    lib/database/index-field.js

  Modified: lib/database/index-field.js (+1 -1)
===================================================================
--- lib/database/index-field.js    2012-12-05 15:33:56 +0900 (c75dd03)
+++ lib/database/index-field.js    2012-12-05 15:29:08 +0900 (ddc50ec)
@@ -269,7 +269,7 @@ IndexField.prototype = {
 
   getOption: function(option) {
     var key = this.getOptionKey(option);
-    if (this._pendingOptions)
+    if (this._pendingOptions && key in this._pendingOptions)
       return this._pendingOptions[key];
     return this.domain.getConfiguration(key);
   },
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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