Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Journal_Construction_Lock.cpp
Go to the documentation of this file.
2
3namespace joedb
4{
5 ////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////
8 (
11 ):
12 tail_lock(file.is_shared() ? &file : nullptr),
13 head_lock
14 (
15 file,
16 file.is_readonly() ? File_Head_Lock::Mode::shared : File_Head_Lock::Mode::exclusive
17 ),
18 file(file),
20 size(file.get_size())
21 {
22 }
23}
Journal_Construction_Lock(Abstract_File &file, Recovery recovery=Recovery::none)