File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ final public function commandStarted(CommandStartedEvent $event)
205
205
return ;
206
206
}
207
207
208
- $ this ->operationTime = null ;
209
208
$ this ->isFirstBatchEmpty = false ;
210
209
}
211
210
@@ -218,7 +217,9 @@ final public function commandSucceeded(CommandSucceededEvent $event)
218
217
219
218
$ reply = $ event ->getReply ();
220
219
221
- if (isset ($ reply ->operationTime ) && $ reply ->operationTime instanceof TimestampInterface) {
220
+ /* Note: the spec only refers to collecting an operation time from the
221
+ * "original aggregation", so only capture it if we've not already. */
222
+ if (!isset ($ this ->operationTime ) && isset ($ reply ->operationTime ) && $ reply ->operationTime instanceof TimestampInterface) {
222
223
$ this ->operationTime = $ reply ->operationTime ;
223
224
}
224
225
You can’t perform that action at this time.
0 commit comments