Camel.DataCache.discard_atomic

### Method

# Camel DataCachediscard_atomic

unstable since: 3.62

#### Declaration [src]

    void
    camel_data_cache_discard_atomic (
      CamelDataCache* cdc,
      GIOStream* stream
    )

#### Description [src]

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 camel_data_cache_commit_atomic().

Available since: 3.62

#### Parameters

`stream`

  Type: `GIOStream`

  The `GIOStream` returned by camel_data_cache_add_atomic().

  The instance takes ownership of the data, and is responsible for freeing it.