[Groonga-commit] groonga/groonga at b4e50fb [master] Accept outputting VOID vector

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 5 18:08:18 JST 2018


Kouhei Sutou	2018-04-05 18:08:18 +0900 (Thu, 05 Apr 2018)

  New Revision: b4e50fb962cc9b2a09cace6979fdbcee72f10879
  https://github.com/groonga/groonga/commit/b4e50fb962cc9b2a09cace6979fdbcee72f10879

  Message:
    Accept outputting VOID vector
    
    Each element has domain even when vector itself doesn't have domain.

  Modified files:
    lib/output.c

  Modified: lib/output.c (+0 -5)
===================================================================
--- lib/output.c    2018-04-05 17:52:45 +0900 (88fbb829c)
+++ lib/output.c    2018-04-05 18:08:18 +0900 (6e54b6a26)
@@ -1142,11 +1142,6 @@ grn_output_vector(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
 {
   grn_bool with_weight = GRN_FALSE;
 
-  if (vector->header.domain == GRN_DB_VOID) {
-    ERR(GRN_INVALID_ARGUMENT, "invalid obj->header.domain");
-    return;
-  }
-
   if (format) {
     if (format->flags & GRN_OBJ_FORMAT_WITH_WEIGHT) {
       with_weight = GRN_TRUE;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180405/dd2e7125/attachment-0001.htm 



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