Ripples 1.0
High Performant Software Architecture For Transaction Processing
Loading...
Searching...
No Matches
query_log_loop.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include "config.h"
#include "constants.h"
#include "channel.h"
#include "log_app.h"
#include "query.h"
#include "utils.h"
Include dependency graph for query_log_loop.c:

Functions

static int query_log_loop_openfile (config_t *cfg, char *err_msg, size_t err_msg_len)
 
void * query_log_loop (void *args)
 

Detailed Description

Author
Faruk Grozdanic

Copyright (c) 2025 Faruk Grozdanic

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Function Documentation

◆ query_log_loop_openfile()

static int query_log_loop_openfile ( config_t cfg,
char *  err_msg,
size_t  err_msg_len 
)
static

Open query log file for write.

Parameters
cfgConfiguration with settings to use.
err_msgBuffer to populate error message if error is one encountered.
err_msg_lenLength (in bytes) of err_msg buffer.
Returns
On success return sfile descriptor, otherwise error occurred and -1 is returned in which case error message in populated in err_mgs buffer.
Here is the call graph for this function:
Here is the caller graph for this function: