[Groonga-commit] ranguba/rroonga at f94ebcc [master] :zstandard is also supported as alias

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Dec 12 23:24:35 JST 2016


Kouhei Sutou	2016-12-12 23:24:35 +0900 (Mon, 12 Dec 2016)

  New Revision: f94ebcc919c011c9d4b9109cc9bd4d6cbacf3019
  https://github.com/ranguba/rroonga/commit/f94ebcc919c011c9d4b9109cc9bd4d6cbacf3019

  Message:
    :zstandard is also supported as alias

  Modified files:
    ext/groonga/rb-grn-table.c

  Modified: ext/groonga/rb-grn-table.c (+4 -1)
===================================================================
--- ext/groonga/rb-grn-table.c    2016-12-12 23:23:53 +0900 (f221902)
+++ ext/groonga/rb-grn-table.c    2016-12-12 23:24:35 +0900 (e2ac16d)
@@ -232,6 +232,7 @@ rb_grn_table_inspect (VALUE self)
  *     * `:zlib`: Compressed by zlib.
  *     * `:lz4`: Compressed by LZ4.
  *     * `:zstd`: Compressed by Zstandard.
+ *     * `:zstandard`: Compressed by Zstandard.
  *
  * @return [Groonga::FixSizeColumn, Groonga::VariableSizeColumn]
  */
@@ -315,10 +316,12 @@ rb_grn_table_define_column (int argc, VALUE *argv, VALUE self)
         flags |= GRN_OBJ_COMPRESS_LZ4;
     } else if (rb_grn_equal_option(rb_compress, "zstd")) {
         flags |= GRN_OBJ_COMPRESS_ZSTD;
+    } else if (rb_grn_equal_option(rb_compress, "zstandard")) {
+        flags |= GRN_OBJ_COMPRESS_ZSTD;
     } else {
         rb_raise(rb_eArgError,
                  "invalid compress type: %s: "
-                 "available types: [:zlib, :lz4, :zstd, nil]",
+                 "available types: [:zlib, :lz4, :zstd, :zstandard, nil]",
                  rb_grn_inspect(rb_compress));
     }
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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