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; }
private AbstractPager CreateBufferPager() { return(_options.CreateTemporaryBufferPager($"lazy-transactions.{_lazyPagerCounter++:D10}.buffers", _options.InitialFileSize ?? _options.InitialLogFileSize)); }
private AbstractPager CreateBufferPager() { return(_options.CreateTemporaryBufferPager($"lazy-transactions.{_lazyPagerCounter++:D10}{StorageEnvironmentOptions.DirectoryStorageEnvironmentOptions.BuffersFileExtension}", _options.InitialFileSize ?? _options.InitialLogFileSize)); }