[Groonga-commit] groonga/groonga at 78d1aa5 [master] ii: revert end address computation fix

Back to archive index
Kouhei Sutou null+****@clear*****
Tue Mar 5 19:04:32 JST 2019


Kouhei Sutou	2019-03-05 19:04:32 +0900 (Tue, 05 Mar 2019)

  Revision: 78d1aa58609d7906f1020d5625d02464b2c0719c
  https://github.com/groonga/groonga/commit/78d1aa58609d7906f1020d5625d02464b2c0719c

  Message:
    ii: revert end address computation fix
    
    It's not a problem. data_size is count not byte size.

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+3 -3)
===================================================================
--- lib/ii.c    2019-03-05 18:14:34 +0900 (75725c3c4)
+++ lib/ii.c    2019-03-05 19:04:32 +0900 (54f8bc2aa)
@@ -3675,7 +3675,7 @@ chunk_merge(grn_ctx *ctx,
     }
     chunk_data->position_gaps = rdv[j].data;
     chunk_data->position_gaps_end =
-      chunk_data->position_gaps + (rdv[j].data_size / sizeof(uint32_t));
+      chunk_data->position_gaps + rdv[j].data_size;
   }
   datavec_reset(ctx,
                 dv,
@@ -4070,7 +4070,7 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h,
           }
           chunk_data->position_gaps = rdv[j].data;
           chunk_data->position_gaps_end =
-            chunk_data->position_gaps + (rdv[j].data_size / sizeof(uint32_t));
+            chunk_data->position_gaps + rdv[j].data_size;
         }
         datavec_reset(ctx,
                       dv,
@@ -4574,7 +4574,7 @@ grn_ii_buffer_check(grn_ctx *ctx, grn_ii *ii, uint32_t seg)
           GRN_OUTPUT_INT64(rdv[j].data_size);
           chunk_data->position_gaps = rdv[j].data;
           chunk_data->position_gaps_end =
-            chunk_data->position_gaps + (rdv[j].data_size / sizeof(uint32_t));
+            chunk_data->position_gaps + rdv[j].data_size;
         }
         nterm_with_chunk++;
       }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190305/c05a4026/attachment-0001.html>


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