Aquires a snapshot of the file system to browse in an isolated mannor. This is read only and will also block the main file from being deleted. Therefore it is important to release this lock so the file can be deleted after a rollover.
Example #1
0
 private TransactionalFileStructure(DiskIo diskIo)
 {
     m_diskIo = diskIo;
     m_currentReadTransaction = new ReadSnapshot(diskIo);
 }
 private TransactionalFileStructure(DiskIo diskIo)
 {
     m_diskIo = diskIo;
     m_currentReadTransaction = new ReadSnapshot(diskIo);
 }
Example #3
0
 private void OnTransactionCommitted()
 {
     m_currentReadTransaction = new ReadSnapshot(m_diskIo);
     Thread.MemoryBarrier();
     m_currentTransaction = null;
 }
 private void OnTransactionCommitted()
 {
     m_currentReadTransaction = new ReadSnapshot(m_diskIo);
     Thread.MemoryBarrier();
     m_currentTransaction = null;
 }