discard_atomic


Description:

[ Version ( since = "3.62" ) ]
public void discard_atomic (owned IOStream stream)

Discard an atomic cache write.

stream is closed and unreffed, the temporary file is removed, and the bag reservation is released so that other threads can retry the operation.

Call this on any error path before commit_atomic.

Parameters:

this

A DataCache

stream

the IOStream returned by add_atomic