Prevent write operations to database replicas.
[lhc/web/wiklou.git] / includes / libs / rdbms / loadbalancer / ILoadBalancer.php
index 86c4335..b565b3b 100644 (file)
@@ -87,6 +87,9 @@ interface ILoadBalancer {
        /** @var int DB handle should have DBO_TRX disabled and the caller will leave it as such */
        const CONN_TRX_AUTO = 1;
 
+       /** Disable writing for the given connection. Used internally. Do not use with DB_MASTER! */
+       const CONN_NO_WRITE = 2;
+
        /**
         * Construct a manager of IDatabase connection objects
         *