X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Flbfactory%2FILBFactory.php;h=45e7cbb7568d959f77595ccc0b5f153648f537cd;hp=32d90082d347ace2c88927d59115c2c3fbbe4c87;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hpb=743eca95e3065abf3091d343a4ab88ee4508483a diff --git a/includes/libs/rdbms/lbfactory/ILBFactory.php b/includes/libs/rdbms/lbfactory/ILBFactory.php index 32d90082d3..45e7cbb756 100644 --- a/includes/libs/rdbms/lbfactory/ILBFactory.php +++ b/includes/libs/rdbms/lbfactory/ILBFactory.php @@ -55,6 +55,7 @@ interface ILBFactory { * - queryLogger: PSR-3 logger instance. [optional] * - perfLogger: PSR-3 logger instance. [optional] * - errorLogger: Callback that takes an Exception and logs it. [optional] + * - deprecationLogger: Callback to log a deprecation warning. [optional] * @throws InvalidArgumentException */ public function __construct( array $conf ); @@ -194,12 +195,22 @@ interface ILBFactory { public function rollbackMasterChanges( $fname = __METHOD__ ); /** - * Check if a transaction round is active + * Check if an explicit transaction round is active * @return bool * @since 1.29 */ public function hasTransactionRound(); + /** + * Check if transaction rounds can be started, committed, or rolled back right now + * + * This can be used as a recusion guard to avoid exceptions in transaction callbacks + * + * @return bool + * @since 1.32 + */ + public function isReadyForRoundOperations(); + /** * Determine if any master connection has pending changes * @return bool