+ $noWrite = ( ( $flags & self::CONN_NO_WRITE ) == self::CONN_NO_WRITE );
+
+ if ( $noWrite && $i === $this->getWriterIndex() ) {
+ // We can't disable writes on the master connection!
+ // TODO: Wrap the master connection, so write operations fail!
+ $noWrite = false;
+ }