plugins/out_s3/s3_multipart.c
static flb_sds_t upload_data(flb_sds_t etag, int part_num)
{
    flb_sds_t data;
    flb_sds_t tmp;

    data = flb_sds_create_size(64);

    tmp = flb_sds_printf(&data, "part_number=%d\tetag=%s\n", part_num, etag);
    if (!tmp) {
        flb_errno();
        flb_sds_destroy(data);
        return NULL;
    }
    data = tmp;

    return data;
}
/* store list of part number and etag */
store list of part number and etag
store list of part number and etag
static flb_sds_t upload_data(flb_sds_t etag, int part_num)
{
    flb_sds_t data;
    flb_sds_t tmp;
    data = flb_sds_create_size(64);
    tmp = flb_sds_printf(&data, "part_number=%d\tetag=%s\n", part_num, etag);
    if (!tmp) {
        flb_errno();
        flb_sds_destroy(data);
        return NULL;
    }
    data = tmp;
    return data;
}
static flb_sds_t upload_data ( flb_sds_t etag , int part_num ) { flb_sds_t data ; flb_sds_t tmp ; data = flb_sds_create_size ( 64 ) ; tmp = flb_sds_printf ( & data , " \t \n " , part_num , etag ) ; if ( ! tmp ) { flb_errno ( ) ; flb_sds_destroy ( data ) ; return NULL ; } data = tmp ; return data ; }
store list of part number and etag
store list of part number and etag