com presentations: Remove deprecated "safe" write concern option: slides/mongodb/repl-tagging-example.xml slides/mongodb/repl-write-concern.xml slides/mongodb/safe2.xml

[email protected] (Derick Rethans)
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    fa5798e4508fb0cb5dcc92544b31e75fb62b6487
Author:    Jeremy Mikola <[email protected]>         Sun, 17 May 2015 15:27:54 -0500
Parents:   6309378cdeec2b54fcc34e999f84078d808a9a3b
Branches:  master

Link:       http://git.php.net/?p=presentations.git;a=commitdiff;h=fa5798e4508fb0cb5dcc92544b31e75fb62b6487

Log:
Remove deprecated "safe" write concern option

Changed paths:
  M  slides/mongodb/repl-tagging-example.xml
  M  slides/mongodb/repl-write-concern.xml
  M  slides/mongodb/safe2.xml


Diff:
diff --git a/slides/mongodb/repl-tagging-example.xml b/slides/mongodb/repl-tagging-example.xml
index f9b0e7a..83de652 100644
--- a/slides/mongodb/repl-tagging-example.xml
+++ b/slides/mongodb/repl-tagging-example.xml
@@ -21,6 +21,6 @@
 
 <blurb>From PHP, enforce the write tags by:</blurb>
 <example><![CDATA[
-$c->insert( [ … ], [ 'safe' => 'allUses' ] );
+$c->insert( [ … ], [ 'w' => 'allUses' ] );
 ]]></example>
 </slide>
diff --git a/slides/mongodb/repl-write-concern.xml b/slides/mongodb/repl-write-concern.xml
index 27a2f7e..f4bb1f9 100644
--- a/slides/mongodb/repl-write-concern.xml
+++ b/slides/mongodb/repl-write-concern.xml
@@ -3,7 +3,6 @@
 
 <list>
 	<bullet>Safe mode:<br/>%$c->insert( [ 'text' => 'example' ], [ 'w' => 1 ] );%</bullet>
-	<bullet>Safe mode:<br/>%$c->insert( [ 'text' => 'example' ], [ 'safe' => true ] );%</bullet>
 	<bullet>Two nodes:<br/>%$c->insert( [ 'text' => 'example' ], [ 'w' => 2 ] );%</bullet>
 	<bullet>Majority of nodes:<br/>%$c->insert( [ 'text' => 'example' ], [ 'w' => "majority" ] );%</bullet>
 	<bullet>Tagged nodes:<br/>%$c->insert( [ 'text' => 'example' ], [ 'w' => "allDCs" ] );%</bullet>
diff --git a/slides/mongodb/safe2.xml b/slides/mongodb/safe2.xml
index fffbb79..fc61f6c 100644
--- a/slides/mongodb/safe2.xml
+++ b/slides/mongodb/safe2.xml
@@ -15,7 +15,7 @@ $c = $m->demo->talks;
 
 $c->insert(
     [ '_id' => 'mongodb' ],      // document
-    [ 'safe' => true, 'w' => 2 ] // options
+    [ 'w' => 1 ]                 // options
 );
 ?>]]></example>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.