[Groonga-commit] groonga/groonga at c3d125c [master] io: add a missing function declaration

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 16 14:45:16 JST 2015


Kouhei Sutou	2015-01-16 14:45:16 +0900 (Fri, 16 Jan 2015)

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

  Message:
    io: add a missing function declaration

  Modified files:
    lib/io.c

  Modified: lib/io.c (+8 -0)
===================================================================
--- lib/io.c    2015-01-16 14:44:07 +0900 (dd6243e)
+++ lib/io.c    2015-01-16 14:45:16 +0900 (18532b2)
@@ -103,6 +103,14 @@ grn_io_fin(void)
   return GRN_SUCCESS;
 }
 
+static inline uint32_t
+grn_io_compute_base(uint32_t header_size)
+{
+  uint32_t total_header_size;
+  total_header_size = IO_HEADER_SIZE + header_size;
+  return (total_header_size + grn_pagesize - 1) & ~(grn_pagesize - 1);
+}
+
 grn_io *
 grn_io_create_tmp(uint32_t header_size, uint32_t segment_size,
                   uint32_t max_segment, grn_io_mode mode, uint32_t flags)
-------------- next part --------------
HTML����������������������������...
Download 



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