https://jira.mongodb.org/browse/PHP-393

-- 
jeremy mikola
Index: doc-base/entities/global.ent
===================================================================
--- doc-base/entities/global.ent        (revision 326383)
+++ doc-base/entities/global.ent        (working copy)
@@ -330,6 +330,7 @@
 <!ENTITY url.mongodb.dochub.getlasterror 
"http://dochub.mongodb.org/core/getlasterror";>
 <!ENTITY url.mongodb.dochub.gridfs "http://dochub.mongodb.org/core/gridfs";>
 <!ENTITY url.mongodb.dochub.indexes "http://dochub.mongodb.org/core/indexes";>
+<!ENTITY url.mongodb.dochub.indexes.rs 
"http://www.mongodb.org/display/DOCS/Building+indexes+with+replica+sets";>
 <!ENTITY url.mongodb.dochub.insert "http://dochub.mongodb.org/core/insert";>
 <!ENTITY url.mongodb.dochub.limit "http://dochub.mongodb.org/core/limit";>
 <!ENTITY url.mongodb.dochub.mapreduce 
"http://dochub.mongodb.org/core/mapreduce";>
Index: en/reference/mongo/mongocollection/ensureindex.xml
===================================================================
--- en/reference/mongo/mongocollection/ensureindex.xml  (revision 326383)
+++ en/reference/mongo/mongocollection/ensureindex.xml  (working copy)
@@ -80,11 +80,20 @@
           <literal>"background"</literal>
          </para>
          <para>
-          If you are using MongoDB version 1.3.2+, you can create indexes in 
the
-          background while other operations are taking place.  By default, 
index
-          creation happens synchronously.  If you specify &true; with this 
-          option, index creation will be asynchronous.
+          By default, index creation is a blocking operation and will stop 
other
+          operations on the database from proceeding until completed. If you
+          specify &true; for this option, the index will be created in the
+          background while other operations are taking place.
          </para>
+         <warning>
+          <para>
+           Prior to MongoDB 2.1.0, the index build operation is not a 
background
+           build when it replicates to secondaries, irrespective of this 
option.
+           See
+           <link xlink:href="&url.mongodb.dochub.indexes.rs;">Building Indexes 
with Replica Sets</link>
+           for more information.
+          </para>
+         </warning>
         </listitem>
         <listitem>
          <para>

Reply via email to