Skip to content

Commit

Permalink
Sets default random access device manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Aug 30, 2022
1 parent 8416d2d commit c2200a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZoneTree/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Authors>Ahmed Yasin Koculu</Authors>
<PackageId>ZoneTree</PackageId>
<Title>ZoneTree</Title>
<ProductVersion>1.4.7.0</ProductVersion>
<Version>1.4.7.0</Version>
<ProductVersion>1.4.8.0</ProductVersion>
<Version>1.4.8.0</Version>
<Authors>Ahmed Yasin Koculu</Authors>
<AssemblyTitle>ZoneTree</AssemblyTitle>
<Description>ZoneTree is a persistent, high-performance, transactional, ACID-compliant ordered key-value database for NET. It can operate in memory or on local/cloud storage.</Description>
Expand Down
6 changes: 6 additions & 0 deletions src/ZoneTree/ZoneTreeFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,12 @@ public ZoneTreeFactory<TKey, TValue> SetInitialSparseArrayLength(int initialSpar

void FillMissingOptionsForKnownTypes()
{
if (Options.RandomAccessDeviceManager == null)
{
Options.RandomAccessDeviceManager = new RandomAccessDeviceManager(
Options.Logger,
FileStreamProvider);
}
FillComparer();
FillKeySerializer();
FillValueSerializer();
Expand Down

0 comments on commit c2200a5

Please sign in to comment.