From 6ef92afe13024b70aa9d75a80edc19a20bb9262e Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 26 Apr 2018 16:20:18 +0000 Subject: [PATCH] Explicit sessions cannot be used with unacknowledged write concerns https://jira.mongodb.org/browse/PHPC-1163 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344841 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../driver/manager/executebulkwrite.xml | 11 +++++++- .../mongodb/driver/manager/executecommand.xml | 9 +++++++ .../manager/executereadwritecommand.xml | 27 +++++++++++++++++++ .../driver/manager/executewritecommand.xml | 27 +++++++++++++++++++ .../driver/server/executebulkwrite.xml | 11 +++++++- .../mongodb/driver/server/executecommand.xml | 9 +++++++ .../driver/server/executereadwritecommand.xml | 27 +++++++++++++++++++ .../driver/server/executewritecommand.xml | 27 +++++++++++++++++++ 8 files changed, 146 insertions(+), 2 deletions(-) diff --git a/reference/mongodb/mongodb/driver/manager/executebulkwrite.xml b/reference/mongodb/mongodb/driver/manager/executebulkwrite.xml index 5a000ee77d..8627491f23 100644 --- a/reference/mongodb/mongodb/driver/manager/executebulkwrite.xml +++ b/reference/mongodb/mongodb/driver/manager/executebulkwrite.xml @@ -66,8 +66,9 @@ &reftitle.errors; Throws MongoDB\Driver\Exception\InvalidArgumentException if bulk does not contain any write operations. - &mongodb.throws.bulkwriteexception; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; + &mongodb.throws.bulkwriteexception; Throws MongoDB\Driver\Exception\RuntimeException on other errors. @@ -84,6 +85,14 @@ + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + 1.4.0 diff --git a/reference/mongodb/mongodb/driver/manager/executecommand.xml b/reference/mongodb/mongodb/driver/manager/executecommand.xml index 51f7bec70e..08294f0825 100644 --- a/reference/mongodb/mongodb/driver/manager/executecommand.xml +++ b/reference/mongodb/mongodb/driver/manager/executecommand.xml @@ -74,6 +74,7 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command, issuing a write command to a secondary). @@ -91,6 +92,14 @@ + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + 1.4.0 diff --git a/reference/mongodb/mongodb/driver/manager/executereadwritecommand.xml b/reference/mongodb/mongodb/driver/manager/executereadwritecommand.xml index 53a518fafb..a7714d57cd 100644 --- a/reference/mongodb/mongodb/driver/manager/executereadwritecommand.xml +++ b/reference/mongodb/mongodb/driver/manager/executereadwritecommand.xml @@ -70,11 +70,38 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command). + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + + + + + + + &reftitle.seealso; diff --git a/reference/mongodb/mongodb/driver/manager/executewritecommand.xml b/reference/mongodb/mongodb/driver/manager/executewritecommand.xml index 8b80b8852b..6d24da1361 100644 --- a/reference/mongodb/mongodb/driver/manager/executewritecommand.xml +++ b/reference/mongodb/mongodb/driver/manager/executewritecommand.xml @@ -67,11 +67,38 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command). + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + + + + + + + &reftitle.seealso; diff --git a/reference/mongodb/mongodb/driver/server/executebulkwrite.xml b/reference/mongodb/mongodb/driver/server/executebulkwrite.xml index 211516f008..844389bbe5 100644 --- a/reference/mongodb/mongodb/driver/server/executebulkwrite.xml +++ b/reference/mongodb/mongodb/driver/server/executebulkwrite.xml @@ -66,8 +66,9 @@ &reftitle.errors; Throws MongoDB\Driver\Exception\InvalidArgumentException if bulk does not contain any write operations. - &mongodb.throws.bulkwriteexception; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; + &mongodb.throws.bulkwriteexception; Throws MongoDB\Driver\Exception\RuntimeException on other errors. @@ -84,6 +85,14 @@ + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + 1.4.0 diff --git a/reference/mongodb/mongodb/driver/server/executecommand.xml b/reference/mongodb/mongodb/driver/server/executecommand.xml index 72be923538..85fad063d5 100644 --- a/reference/mongodb/mongodb/driver/server/executecommand.xml +++ b/reference/mongodb/mongodb/driver/server/executecommand.xml @@ -72,6 +72,7 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command, issuing a write command to a secondary). @@ -89,6 +90,14 @@ + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + 1.4.0 diff --git a/reference/mongodb/mongodb/driver/server/executereadwritecommand.xml b/reference/mongodb/mongodb/driver/server/executereadwritecommand.xml index 0391be803f..fcd0659f8d 100644 --- a/reference/mongodb/mongodb/driver/server/executereadwritecommand.xml +++ b/reference/mongodb/mongodb/driver/server/executereadwritecommand.xml @@ -70,11 +70,38 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command). + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + + + + + + + &reftitle.notes; &mongodb.note.server.write; diff --git a/reference/mongodb/mongodb/driver/server/executewritecommand.xml b/reference/mongodb/mongodb/driver/server/executewritecommand.xml index 6ad55046d8..8854214550 100644 --- a/reference/mongodb/mongodb/driver/server/executewritecommand.xml +++ b/reference/mongodb/mongodb/driver/server/executewritecommand.xml @@ -67,11 +67,38 @@ &reftitle.errors; + &mongodb.throws.session-unacknowledged; &mongodb.throws.std; Throws MongoDB\Driver\Exception\RuntimeException on other errors (e.g. invalid command). + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 1.4.4 + + MongoDB\Driver\Exception\InvalidArgumentException + will be thrown if the "session" option is used in + combination with an unacknowledged write concern. + + + + + + + + &reftitle.notes; &mongodb.note.server.write;