mco_fh_record_destroy

Destroy the record object.

Prototype

 
    mco_fh_ret mco_fh_record_destroy(/*IN*/ mco_fh_record_h rec);
 

Arguments

rec The record handle

Description

This function destroys a record object.

Return Codes

MCO_FH_OK Record successfully destroyed
MCO_FH_E_BAD_HANDLE The record 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);
    }
    ...