[Groonga-commit] groonga/groonga at 07a9f72 [master] lz4: use more readable name

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 21 23:27:19 JST 2014


Kouhei Sutou	2014-10-21 23:27:19 +0900 (Tue, 21 Oct 2014)

  New Revision: 07a9f72d1133d4e219b90d44f859bb22c1d89de2
  https://github.com/groonga/groonga/commit/07a9f72d1133d4e219b90d44f859bb22c1d89de2

  Message:
    lz4: use more readable name

  Modified files:
    lib/store.c

  Modified: lib/store.c (+5 -5)
===================================================================
--- lib/store.c    2014-10-21 23:24:39 +0900 (33d6544)
+++ lib/store.c    2014-10-21 23:27:19 +0900 (5a4a62e)
@@ -1236,15 +1236,15 @@ grn_ja_ref_lz4(grn_ctx *ctx, grn_ja *ja, grn_id id, grn_io_win *iw, uint32_t *va
   int packed_value_len;
   void *lz4_value;
   int lz4_value_len;
-  int lz4_out_len;
+  int original_value_len;
 
   if (!(packed_value = grn_ja_ref_raw(ctx, ja, id, iw, &packed_value_len))) {
     iw->value = NULL;
     *value_len = 0;
     return NULL;
   }
-  lz4_out_len = *((uint64_t *)packed_value);
-  if (!(iw->value = GRN_MALLOC(lz4_out_len))) {
+  original_value_len = *((uint64_t *)packed_value);
+  if (!(iw->value = GRN_MALLOC(original_value_len))) {
     iw->value = NULL;
     *value_len = 0;
     return NULL;
@@ -1254,13 +1254,13 @@ grn_ja_ref_lz4(grn_ctx *ctx, grn_ja *ja, grn_id id, grn_io_win *iw, uint32_t *va
   if (LZ4_decompress_safe((const char *)(lz4_value),
                           (char *)(iw->value),
                           lz4_value_len,
-                          lz4_out_len) < 0) {
+                          original_value_len) < 0) {
     GRN_FREE(iw->value);
     iw->value = NULL;
     *value_len = 0;
     return NULL;
   }
-  *value_len = lz4_out_len;
+  *value_len = original_value_len;
   return iw->value;
 }
 #endif /* GRN_WITH_LZ4 */
-------------- next part --------------
HTML����������������������������...
Download 



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