Skip to content

Commit e3a82d4

Browse files
committed
fix generated timestamp on retry
1 parent a97af1d commit e3a82d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/execution-options.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,10 @@ class DefaultExecutionOptions extends ExecutionOptions {
498498
const generator = this._client.options.policies.timestampGeneration;
499499

500500
if ( types.protocolVersion.supportsTimestamp(this._client.controlConnection.protocolVersion) && generator) {
501-
result = generator.next(this._client);
501+
if (this._generatedTimestamp === undefined) {
502+
this._generatedTimestamp = generator.next(this._client);
503+
}
504+
result = this._generatedTimestamp;
502505
} else {
503506
result = null;
504507
}

0 commit comments

Comments
 (0)