From 2b3d7517c913b6737331eba9bf8b28f0f69febcd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 23 Mar 2017 22:05:24 +0800 Subject: [PATCH] =?UTF-8?q?mongodb=20migrate=20=E7=B4=A2=E5=BC=95=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/mongodb/Product.php | 2 +- models/mongodb/cms/Article.php | 2 +- models/mongodb/cms/StaticBlock.php | 2 +- models/mongodb/customer/Newsletter.php | 2 +- models/mongodb/product/Favorite.php | 2 +- models/mongodb/product/Review.php | 2 +- models/mongodb/url/UrlRewrite.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/models/mongodb/Product.php b/models/mongodb/Product.php index 1e31c9ff9..abc333f41 100644 --- a/models/mongodb/Product.php +++ b/models/mongodb/Product.php @@ -107,7 +107,7 @@ public static function create_index(){ ['category' => -1], ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/cms/Article.php b/models/mongodb/cms/Article.php index bbb981cff..8e3ed5cd0 100644 --- a/models/mongodb/cms/Article.php +++ b/models/mongodb/cms/Article.php @@ -46,7 +46,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/cms/StaticBlock.php b/models/mongodb/cms/StaticBlock.php index 0cfad77f5..6e3795e7f 100644 --- a/models/mongodb/cms/StaticBlock.php +++ b/models/mongodb/cms/StaticBlock.php @@ -43,7 +43,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/customer/Newsletter.php b/models/mongodb/customer/Newsletter.php index 0c156e3cf..cd9bae76b 100644 --- a/models/mongodb/customer/Newsletter.php +++ b/models/mongodb/customer/Newsletter.php @@ -45,7 +45,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/product/Favorite.php b/models/mongodb/product/Favorite.php index 4ad3fb057..9ab2804b5 100644 --- a/models/mongodb/product/Favorite.php +++ b/models/mongodb/product/Favorite.php @@ -45,7 +45,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/product/Review.php b/models/mongodb/product/Review.php index c145cf477..ed1b05673 100644 --- a/models/mongodb/product/Review.php +++ b/models/mongodb/product/Review.php @@ -72,7 +72,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); } diff --git a/models/mongodb/url/UrlRewrite.php b/models/mongodb/url/UrlRewrite.php index 305fecf44..78442063b 100644 --- a/models/mongodb/url/UrlRewrite.php +++ b/models/mongodb/url/UrlRewrite.php @@ -43,7 +43,7 @@ public static function create_index(){ ]; - $options = ['background' => true, 'socketTimeoutMS' => 300000]; + $options = ['background' => true]; foreach($indexs as $columns){ self::getCollection()->createIndex($columns,$options); }