Skip to content

Commit a40c5c5

Browse files
authored
Merge pull request #415 from mongodb/phplib-268
PHPLIB-268 Add option maxAwaitTimeMS on getMore commands
2 parents c8f46d9 + 96018df commit a40c5c5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

source/includes/apiargs-MongoDBCollection-method-find-option.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ interface: phpmethod
9393
operation: ~
9494
optional: true
9595
---
96+
source:
97+
file: apiargs-common-option.yaml
98+
ref: maxAwaitTimeMS
99+
---
96100
source:
97101
file: apiargs-common-option.yaml
98102
ref: maxTimeMS

source/includes/apiargs-common-option.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ operation: ~
1010
optional: true
1111
---
1212
arg_name: option
13+
name: maxAwaitTimeMS
14+
type: integer
15+
description: |
16+
Positive integer denoting the time limit in milliseconds for the server to block
17+
a getMore operation if no data is available. This option should only be used if
18+
cursorType is TAILABLE_AWAIT.
19+
interface: phpmethod
20+
operation: ~
21+
optional: true
22+
---
23+
arg_name: option
1324
name: readConcern
1425
type: :php:`MongoDB\\Driver\\ReadConcern <class.mongodb-driver-readconcern>`
1526
description: |

0 commit comments

Comments
 (0)