This is necessary for callers to see changes from prior callers
Change-Id: I5e05215541e641b5b5a4bc55c91d6ec8ef774ca1
$that = $this;
$unlocker = new ScopedCallback( function () use ( $that, $lockKey, $fname ) {
+ $that->commit( __METHOD__, 'flush' );
$that->unlock( $lockKey, $fname );
} );
* This is suitiable for transactions that need to be serialized using cooperative locks,
* where each transaction can see each others' changes. Any transaction is flushed to clear
* out stale REPEATABLE-READ snapshot data. Once the returned object falls out of PHP scope,
- * the lock will be released.
+ * any transaction will be committed and the lock will be released.
*
* If the lock acquisition failed, then no transaction flush happens, and null is returned.
*