c9792b96d2
Use a single transaction to create the replacement resource and set it as the replaced_by link in the old resource. Also, ensure that no other traversal has taken a lock on the old resource before we modify it. If we end up bailing out and not creating a replacement or sending an RPC message to check it, make sure we retrigger any new traversal. Change-Id: I23db4f06a4060f3d26a78f7b26700de426f355e3 Closes-Bug: #1727128