Skip to content

Commit bb4415c

Browse files
committed
New WAL requires 64-bit process
1 parent 8a11346 commit bb4415c

File tree

1 file changed

+3
-0
lines changed
  • src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/StateMachine

1 file changed

+3
-0
lines changed

src/cluster/DotNext.Net.Cluster/Net/Cluster/Consensus/Raft/StateMachine/WriteAheadLog.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ public WriteAheadLog(Options configuration, IStateMachine stateMachine)
4141
ArgumentNullException.ThrowIfNull(configuration);
4242
ArgumentNullException.ThrowIfNull(stateMachine);
4343

44+
if (nuint.Size < sizeof(ulong))
45+
throw new PlatformNotSupportedException();
46+
4447
lifetimeTokenSource = new();
4548
var rootPath = new DirectoryInfo(configuration.Location);
4649
CreateIfNeeded(rootPath);

0 commit comments

Comments
 (0)