src/elastic-connection.c
static void
elastic_connection_bulk_response(const struct http_response *response,
                                   struct elastic_connection *conn)
{
    FUNC_START();
    if (response != NULL && conn != NULL ) {
        /* 200 OK, 204 continue */
        if (response->status / 100 != 2) {
            i_error("fts_elastic: Indexing failed: %s", response->reason);
            conn->request_status = -1;
        }
    }
    FUNC_END();
}
/* Checks response status code from _bulk request */
Checks response status code from _bulk request
Checks response status code from _bulk request
static void
elastic_connection_bulk_response(const struct http_response *response,
                                   struct elastic_connection *conn)
{
    FUNC_START();
    if (response != NULL && conn != NULL ) {
        if (response->status / 100 != 2) {
            i_error("fts_elastic: Indexing failed: %s", response->reason);
            conn->request_status = -1;
        }
    }
    FUNC_END();
}
static void elastic_connection_bulk_response ( const struct http_response * response , struct elastic_connection * conn ) { FUNC_START ( ) ; if ( response != NULL && conn != NULL ) { if ( response -> status / 100 != 2 ) { i_error ( " " , response -> reason ) ; conn -> request_status = -1 ; } } FUNC_END ( ) ; }
Checks response status code from _bulk request
Checks response status code from _bulk request
/* 200 OK, 204 continue */