PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
method_sync.c File Reference
#include "postgres.h"
#include "storage/aio.h"
#include "storage/aio_internal.h"
Include dependency graph for method_sync.c:

Go to the source code of this file.

Functions

static bool pgaio_sync_needs_synchronous_execution (PgAioHandle *ioh)
 
static int pgaio_sync_submit (uint16 num_staged_ios, PgAioHandle **staged_ios)
 

Variables

const IoMethodOps pgaio_sync_ops
 

Function Documentation

◆ pgaio_sync_needs_synchronous_execution()

static bool pgaio_sync_needs_synchronous_execution ( PgAioHandle ioh)
static

Definition at line 36 of file method_sync.c.

37{
38 return true;
39}

◆ pgaio_sync_submit()

static int pgaio_sync_submit ( uint16  num_staged_ios,
PgAioHandle **  staged_ios 
)
static

Definition at line 42 of file method_sync.c.

43{
44 elog(ERROR, "IO should have been executed synchronously");
45
46 return 0;
47}
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:225

References elog, and ERROR.

Variable Documentation

◆ pgaio_sync_ops

const IoMethodOps pgaio_sync_ops
Initial value:
= {
.needs_synchronous_execution = pgaio_sync_needs_synchronous_execution,
.submit = pgaio_sync_submit,
}
static int pgaio_sync_submit(uint16 num_staged_ios, PgAioHandle **staged_ios)
Definition: method_sync.c:42
static bool pgaio_sync_needs_synchronous_execution(PgAioHandle *ioh)
Definition: method_sync.c:36

Definition at line 28 of file method_sync.c.