mco_fh_writer_destroy

Destroys the writer object.

Prototype

    mco_fh_ret mco_fh_writer_destroy(/*IN*/ mco_fh_writer_h wr);

Arguments

wr
The writer handle.

Description

This function destroys the writer object referenced by the handle passed in argument wr.

Return Codes

MCO_FH_OK
The writer was successfully destroyed.
MCO_FH_E_BAD_HANDLE
The writer handle is invalid.

Example

    ...
    std::vector<TableInfo>::iterator it;
    for (it = tables.begin(); it != tables.end(); ++it)
    {
        mco_fh_record_destroy(it->record);
        mco_fh_writer_destroy(it->writer);
    }
    ...