Method: PEROBS::BTree#sync

Defined in:
lib/perobs/BTree.rb

#syncObject

Flush all pending modifications into the tree file.



152
153
154
155
156
157
# File 'lib/perobs/BTree.rb', line 152

def sync
  @node_cache.flush(true)
  @nodes.set_custom_data('btree_size', @size)
  @nodes.sync
  @dirty_flag.unlock if @dirty_flag.is_locked?
end