You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (lineln>MAX_CSV_LINE_LEN||lineln<min_line_size)
734
735
{
735
736
log_debug("%s: Line %d -- Skipped, %ld exceed MAX line size %d.\n", job->csv_path, line_number, lineln, MAX_CSV_LINE_LEN);
736
-
skipped++;
737
+
skipped_invalid++;
737
738
continue;
738
739
}
739
740
@@ -744,7 +745,7 @@ int ldb_import_csv(ldb_importation_config_t * job)
744
745
if (first_line_byte!=first_byte)
745
746
{
746
747
log_info("%s: Line %d -- Skipped, first byte in file name does not match key first byte %02x != %02x.\n", job->csv_path, line_number, first_byte, first_line_byte);
747
-
skipped++;
748
+
skipped_invalid++;
748
749
continue;
749
750
}
750
751
}
@@ -763,12 +764,11 @@ int ldb_import_csv(ldb_importation_config_t * job)
763
764
764
765
/* First CSV field is the data key. Data starts with the second CSV field */
765
766
char*data=field_n(2, line);
766
-
boolskip= false;
767
767
768
768
if (!data)
769
769
{
770
770
log_debug("%s: Line %d -- Skipped, data is missed %d.\n", job->csv_path, line_number);
771
-
skipped++;
771
+
skipped_invalid++;
772
772
continue;
773
773
}
774
774
@@ -781,7 +781,8 @@ int ldb_import_csv(ldb_importation_config_t * job)
781
781
if (dup_id&&*last_url_id&& !memcmp(data, last_url_id, MD5_LEN*2))
782
782
{
783
783
log_debug("%s: Line %d -- Skipped, repeated URL ID.\n", job->csv_path, line_number);
784
-
skip= true;
784
+
skipped++;
785
+
continue;
785
786
}
786
787
else
787
788
memcpy(last_url_id, data, MD5_LEN*2);
@@ -792,7 +793,8 @@ int ldb_import_csv(ldb_importation_config_t * job)
792
793
if (!data)
793
794
{
794
795
log_debug("%s: Error in line: %d, data is missing -- %s Skipped\n", job->csv_path, line_number, line);
795
-
skipped++;
796
+
skipped_invalid++;
797
+
continue;
796
798
}
797
799
}
798
800
else
@@ -812,8 +814,8 @@ int ldb_import_csv(ldb_importation_config_t * job)
812
814
if (r_size <= 0)
813
815
{
814
816
log_debug("Error: failed to decode line %s. Skipping\n", line);
815
-
skip= true;
816
-
}
817
+
skipped_invalid++;
818
+
continue; }
817
819
}
818
820
else
819
821
ldb_error("libscanoss_encoder.so it is not available, \".enc\" files cannot be processed\n");
@@ -827,14 +829,10 @@ int ldb_import_csv(ldb_importation_config_t * job)
827
829
if (!skip_csv_check&& (csv_fields(line) !=job->opt.params.csv_fields))
0 commit comments