Skip to content

Commit

Permalink
IGNITE-23747 / update client protocol in C#
Browse files Browse the repository at this point in the history
  • Loading branch information
rpuch committed Dec 14, 2024
1 parent c1d9d8a commit 10b92c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/platforms/dotnet/Apache.Ignite.Tests/FakeServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ protected override void Handle(Socket handler, CancellationToken cancellationTok

case ClientOp.TxBegin:
reader.Skip(); // Read only.
reader.Skip(8); // TimeoutMillis.
LastClientObservableTimestamp = reader.ReadInt64();

Send(handler, requestId, new byte[] { 0 }.AsMemory());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void Write()
{
var w = writer.MessageWriter;
w.Write(_options.ReadOnly);
w.Write(_options.TimeoutMillis);
w.Write(failoverSocket.ObservableTimestamp);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ namespace Apache.Ignite.Transactions;
/// Read-only transactions provide a snapshot view of data at a certain point in time.
/// They are lock-free and perform better than normal transactions, but do not permit data modifications.
/// </param>
public readonly record struct TransactionOptions(bool ReadOnly);
/// <param name="TimeoutMillis">
/// Transaction timeout. 0 means 'use default timeout'.
/// </param>
public readonly record struct TransactionOptions(bool ReadOnly, long TimeoutMillis = 0);

0 comments on commit 10b92c7

Please sign in to comment.