Метод rewriteSnapshot

private

Сигнатура метода

private function rewriteSnapshot(int $templateId, DateTime $versionKey, array $fields): void

Возвращает: void

Описание

Final write of a reserved capture. The version condition is repeated here because the tree is walked outside the reservation: another process may have stored a snapshot of a newer template version meanwhile, and that snapshot wins. No row is updated then - a lost race is a regular outcome of the capture, not a failure.

Параметры

3
Имя Тип По умолчанию Флаги
$templateId int —
—
$versionKey DateTime —
—
$fields array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/LastValues/CaptureService.php
Расположение метода в файле
Строки 309–325

Исходный код

PHP