Пример #1
0
        public void CanUnpinMultipleBuffersByUnpinAll()
        {
            _buffersList = new TransactionBuffersList(_bufferManager);

            var block = new Block(RandomFilename, 0);

            Assert.DoesNotThrow(() =>
            {
                _buffersList.Pin(block);
                _buffersList.Pin(block);
                _buffersList.Pin(block);
                _buffersList.UnpinAll();
            });
        }
Пример #2
0
 public void Commit()
 {
     _bufferList.UnpinAll();
     _recoveryManager.Commit();
     _concurrencyManager.Release();
 }