Passed
Push — 5.1 ( c10446...dbaa82 )
by liu
09:58
created
library/think/db/Connection.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1812,9 +1812,11 @@
 block discarded – undo
1812 1812
 
1813 1813
         if ($this->config['rw_separate']) {
1814 1814
             // 主从式采用读写分离
1815
-            if ($master) // 主服务器写入
1815
+            if ($master) {
1816
+                // 主服务器写入
1816 1817
             {
1817 1818
                 $r = $m;
1819
+            }
1818 1820
             } elseif (is_numeric($this->config['slave_no'])) {
1819 1821
                 // 指定服务器读
1820 1822
                 $r = $this->config['slave_no'];
Please login to merge, or discard this patch.