public LazyTransactionBuffer(StorageEnvironmentOptions options)
 {
     _lazyTransactionPager         = options.CreateTemporaryBufferPager("lazy-transactions.buffer", options.InitialFileSize ?? options.InitialLogFileSize);
     _transactionPersistentContext = new TransactionPersistentContext(true);
     _log     = LoggingSource.Instance.GetLogger <LazyTransactionBuffer>(options.BasePath.FullPath);
     _options = options;
 }
Example #2
0
 private AbstractPager CreateBufferPager()
 {
     return(_options.CreateTemporaryBufferPager($"lazy-transactions.{_lazyPagerCounter++:D10}.buffers", _options.InitialFileSize ?? _options.InitialLogFileSize));
 }
Example #3
0
 private AbstractPager CreateBufferPager()
 {
     return(_options.CreateTemporaryBufferPager($"lazy-transactions.{_lazyPagerCounter++:D10}{StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.BuffersFileExtension}", _options.InitialFileSize ?? _options.InitialLogFileSize));
 }