}
if !versionhistory.IsEqualVersionHistoryItem(localHistoryLastItem, incomingHistoryLastItem) {
"Failed to sync workflow state due to version history mismatch",
namespaceID.String(),
wid,
rid,
localHistoryLastItem.GetEventId(),
localHistoryLastItem.GetVersion(),
common.EmptyEventID,
common.EmptyVersion,
)
}
// release the workflow lock here otherwise SyncHSM will deadlock