[Groonga-commit] groonga/groonga at a34ecaf [master] load: ensure resetting error for each record load

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 5 00:30:24 JST 2017


Kouhei Sutou	2017-02-05 00:30:24 +0900 (Sun, 05 Feb 2017)

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

  Message:
    load: ensure resetting error for each record load

  Modified files:
    lib/load.c

  Modified: lib/load.c (+3 -0)
===================================================================
--- lib/load.c    2017-02-03 23:10:58 +0900 (5997210)
+++ lib/load.c    2017-02-05 00:30:24 +0900 (4518683)
@@ -423,6 +423,7 @@ bracket_close(grn_ctx *ctx, grn_loader *loader)
       ERR(GRN_INVALID_ARGUMENT,
           "unexpected #values: expected:%u, actual:%u",
           expected_nvalues, nvalues);
+      grn_loader_save_error(ctx, loader);
       goto exit;
     }
     if (loader->id_offset != -1) {
@@ -491,6 +492,7 @@ exit:
     }
   }
   loader->values_size = begin;
+  ERRCLR(ctx);
 }
 
 static void
@@ -656,6 +658,7 @@ exit:
                            GRN_DB_TEXT);
   }
   loader->values_size = begin;
+  ERRCLR(ctx);
 }
 
 #define JSON_READ_OPEN_BRACKET() do {\
-------------- next part --------------
HTML����������������������������...
Download 



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