Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*-------------------------------------------------------------------------
 * cfs_checkpoint.h
 *    Compressed File Store (CFS) — the checkpoint entry point.
 *
 * CfsCheckpoint() folds every dirty CFS relation's journal into its
 * .cfsmap snapshot, fsyncs the sidecars and resets the journal.  The
 * implementation (two phases, state machine, durability contract) lives
 * in cfs_checkpoint.c; the SMgr-level helpers it drives stay in
 * cfs_smgr.c / cfs_shmem.c.
 *
 * Copyright (c) 2026, Kirillov Vyacheslav by AI, QDB Development Group
 *
 * IDENTIFICATION
 *    src/include/storage/cfs/cfs_checkpoint.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef CFS_CHECKPOINT_H
#define CFS_CHECKPOINT_H
 
#include "postgres.h"
 
/*
 * CfsCheckpoint — persist a fresh .cfsmap snapshot for every known CFS
 * relation, fsync the sidecars and truncate the journal.  Called from
 * CheckPointBuffers() after dirty buffers have been flushed.
 */
extern void CfsCheckpoint(void);
 
#endif                          /* CFS_CHECKPOINT_H */