[Groonga-commit] groonga/grnxx at 62425dc [master] Add grnxx::map::BytesArray::sweep().

Back to archive index

susumu.yata null+****@clear*****
Thu May 30 14:42:42 JST 2013


susumu.yata	2013-05-30 14:42:42 +0900 (Thu, 30 May 2013)

  New Revision: 62425dc1755c74ca1bc4421f90216e70455b8d39
  https://github.com/groonga/grnxx/commit/62425dc1755c74ca1bc4421f90216e70455b8d39

  Message:
    Add grnxx::map::BytesArray::sweep().

  Modified files:
    lib/grnxx/map/bytes_array.hpp

  Modified: lib/grnxx/map/bytes_array.hpp (+5 -0)
===================================================================
--- lib/grnxx/map/bytes_array.hpp    2013-05-30 10:12:15 +0900 (e162389)
+++ lib/grnxx/map/bytes_array.hpp    2013-05-30 14:42:42 +0900 (31751be)
@@ -85,6 +85,11 @@ class BytesArray {
   // Set a value and return true on success.
   bool set(uint64_t value_id, ValueArg value);
 
+  // Sweep empty pages whose modified time < (now - lifetime).
+  bool sweep(Duration lifetime) {
+    return store_->sweep(lifetime);
+  }
+
  private:
   Storage *storage_;
   uint32_t storage_node_id_;
-------------- next part --------------
HTML����������������������������...
Télécharger 



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