[Groonga-commit] groonga/grnxx at 24385e7 [master] Change the order of header members.

Back to archive index

susumu.yata null+****@clear*****
Mon Jul 29 16:14:38 JST 2013


susumu.yata	2013-07-29 16:14:38 +0900 (Mon, 29 Jul 2013)

  New Revision: 24385e764de2f5c085bb488304e20d9a2505aa6b
  https://github.com/groonga/grnxx/commit/24385e764de2f5c085bb488304e20d9a2505aa6b

  Message:
    Change the order of header members.

  Modified files:
    lib/grnxx/map/hash_table.cpp

  Modified: lib/grnxx/map/hash_table.cpp (+5 -5)
===================================================================
--- lib/grnxx/map/hash_table.cpp    2013-07-29 14:19:34 +0900 (792eb79)
+++ lib/grnxx/map/hash_table.cpp    2013-07-29 16:14:38 +0900 (f05234a)
@@ -47,11 +47,11 @@ constexpr uint64_t MIN_TABLE_SIZE = 256;
 
 struct HashTableHeader {
   CommonHeader common_header;
+  uint64_t num_entries;
+  uint64_t table_id;
   uint32_t table_storage_node_id;
   uint32_t pool_storage_node_id;
   Mutex mutex;
-  uint64_t num_entries;
-  uint64_t table_id;
 
   // Initialize the member variables.
   HashTableHeader();
@@ -62,11 +62,11 @@ struct HashTableHeader {
 
 HashTableHeader::HashTableHeader()
     : common_header(FORMAT_STRING, MAP_HASH_TABLE),
+      num_entries(0),
+      table_id(0),
       table_storage_node_id(STORAGE_INVALID_NODE_ID),
       pool_storage_node_id(STORAGE_INVALID_NODE_ID),
-      mutex(),
-      num_entries(0),
-      table_id(0) {}
+      mutex() {}
 
 HashTableHeader::operator bool() const {
   return common_header.format() == FORMAT_STRING;
-------------- next part --------------
HTML����������������������������...
Download 



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