[Groonga-commit] ranguba/rroonga at d3f79a2 [follow-compression-support-change] context: `GRN_INFO_SUPPORT_LZ4` is not defined in Groonga < 4.0.7.

Back to archive index

Hiroshi Hatake null+****@clear*****
Mon Oct 27 21:11:04 JST 2014


Hiroshi Hatake	2014-10-27 21:11:04 +0900 (Mon, 27 Oct 2014)

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

  Message:
    context: `GRN_INFO_SUPPORT_LZ4` is not defined in Groonga < 4.0.7.
    
    This is workaround for execute test.
    This commit should not commit at master.
    Bump up RequiredGroongaVersion >= 4.0.7 instead.

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

  Modified: ext/groonga/rb-grn-context.c (+4 -0)
===================================================================
--- ext/groonga/rb-grn-context.c    2014-10-27 21:08:20 +0900 (497bb69)
+++ ext/groonga/rb-grn-context.c    2014-10-27 21:11:04 +0900 (4c393e9)
@@ -691,6 +691,7 @@ rb_grn_context_support_lzo_p (VALUE self)
 static VALUE
 rb_grn_context_support_lz4_p (VALUE self)
 {
+#ifdef GRN_INFO_SUPPORT_LZ4
     VALUE rb_support_p;
     grn_ctx *context;
     grn_obj support_p;
@@ -702,6 +703,9 @@ rb_grn_context_support_lz4_p (VALUE self)
     GRN_OBJ_FIN(context, &support_p);
 
     return rb_support_p;
+#else
+    return Qfalse;
+#endif
 }
 
 /*
-------------- next part --------------
HTML����������������������������...
Descargar 



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