svn: /phpdoc/ doc-base/trunk/entities/global.ent en/trunk/reference/mongo/mongocursor/snapshot.xml
| From: | Jeremy Mikola | Date: | Mon, 25 Aug 2014 17:00:30 +0000 |
| Subject: | svn: /phpdoc/ doc-base/trunk/entities/global.ent en/trunk/reference/mongo/mongocursor/snapshot.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12727@lists.php.net to get a copy of this message | ||
jmikola Mon, 25 Aug 2014 17:00:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=334600
Log:
Clarify that MongoCursor::snapshot() only prevents dupes
https://jira.mongodb.org/browse/PHP-1167
Changed paths:
U phpdoc/doc-base/trunk/entities/global.ent
U phpdoc/en/trunk/reference/mongo/mongocursor/snapshot.xml
Modified: phpdoc/doc-base/trunk/entities/global.ent
===================================================================
--- phpdoc/doc-base/trunk/entities/global.ent 2014-08-25 16:12:01 UTC (rev 334599)
+++ phpdoc/doc-base/trunk/entities/global.ent 2014-08-25 17:00:30 UTC (rev 334600)
@@ -358,6 +358,7 @@
<!ENTITY url.mongodb.docs.kerberos.service-principal "http://docs.mongodb.org/manual/core/kerberos/#kerberos-service-principal">
<!ENTITY url.mongodb.docs.configure-ssl "http://docs.mongodb.org/manual/tutorial/configure-ssl/">
<!ENTITY url.mongodb.docs.configure-x509 "http://docs.mongodb.org/manual/tutorial/configure-x509/">
+<!ENTITY url.mongodb.docs.operator.meta.snapshot "http://docs.mongodb.org/manual/reference/operator/meta/snapshot/">
<!ENTITY url.mono "http://www.mono-project.com/">
<!ENTITY url.mnogo "http://www.mnogosearch.org/">
<!ENTITY url.msession "http://www.mohawksoft.org/?q=node/8">
Modified: phpdoc/en/trunk/reference/mongo/mongocursor/snapshot.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocursor/snapshot.xml 2014-08-25 16:12:01 UTC (rev 334599)
+++ phpdoc/en/trunk/reference/mongo/mongocursor/snapshot.xml 2014-08-25 17:00:30 UTC (rev 334600)
@@ -14,16 +14,18 @@
<void/>
</methodsynopsis>
<para>
- Use snapshot mode for the query. Snapshot mode assures no duplicates are returned,
- or objects missed, which were present at both the start and end of the query's
- execution (if an object is new during the query, or deleted during the query, it
- may or may not be returned, even with snapshot mode).
+ Use snapshot mode for the query. Snapshot mode ensures that a document will
+ not be returned more than once because an intervening write operation results
+ in a move of the document. Documents inserted or deleted during the lifetime
+ of the cursor may or may not be returned, irrespective of snapshot mode.
</para>
<para>
- Note that short query responses (less than 1MB) are always effectively snapshotted.
+ Queries with short responses (less than 1MB) are always effectively
+ snapshotted.
</para>
<para>
- Currently, snapshot mode may not be used with sorting or explicit hints.
+ Snapshot mode may not be used with sorting, explicit hints, or queries on
+ sharded collections.
</para>
</refsect1>
@@ -45,6 +47,13 @@
Throws <classname>MongoCursorException</classname> if this cursor has started
iterating.
</para>
</refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ MongoDB core docs on <link
xlink:href="&url.mongodb.docs.operator.meta.snapshot;">$snapshot
operator</link>.
+ </para>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables: