Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  method_sync.c

  Sprache: C
 

/*-------------------------------------------------------------------------
 *
 * method_sync.c
 *    AIO - perform "AIO" by executing it synchronously
 *
 * This method is mainly to check if AIO use causes regressions. Other IO
 * methods might also fall back to the synchronous method for functionality
 * they cannot provide.
 *
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * IDENTIFICATION
 *   src/backend/storage/aio/method_sync.c
 *
 *-------------------------------------------------------------------------
 */


#include "postgres.h"

#include "storage/aio.h"
#include "storage/aio_internal.h"

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


const IoMethodOps pgaio_sync_ops = {
 .needs_synchronous_execution = pgaio_sync_needs_synchronous_execution,
 .submit = pgaio_sync_submit,
};



static bool
pgaio_sync_needs_synchronous_execution(PgAioHandle *ioh)
{
 return true;
}

static int
pgaio_sync_submit(uint16 num_staged_ios, PgAioHandle **staged_ios)
{
 elog(ERROR, "IO should have been executed synchronously");

 return 0;
}

Messung V0.5 in Prozent
C=93 H=88 G=90

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002