changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/ffi/rocksdb/checkpoint.lisp

changeset 598: c7f9bfc9570f
parent: 0a5e37693fdf
child: fea71448569b
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 16 Aug 2024 15:52:50 -0400
permissions: -rw-r--r--
description: rm duplicate files, add rocksdb batch and logger files
1 ;;; rocksdb/checkpoint.lisp --- RocksDB Checkpoints
2 
3 ;;
4 
5 ;;; Code:
6 (in-package :rocksdb)
7 
8 (def-with-errptr rocksdb-checkpoint-object-create (* rocksdb-checkpoint)
9  (db (* rocksdb)))
10 
11 (def-with-errptr rocksdb-checkpoint-create void
12  (checkpoint (* rocksdb-checkpoint))
13  (checkpoint-dir c-string)
14  (log-size-for-flush (unsigned 64)))
15 
16 (define-alien-routine rocksdb-checkpoint-object-destroy void
17  (* rocksdb-checkpoint))
18 
19 ;; rocksdb-open-and-trim-history
20 (def-with-errptr rocksdb-open-as-secondary-column-families (* rocksdb)
21  (opts (* rocksdb-options))
22  (name c-string)
23  (secondary-path c-string)
24  (num-cfs int)
25  (cf-names (array c-string))
26  (cf-opts (array (* rocksdb-options)))
27  (cf-handles (array (* rocksdb-column-family-handle))))
28 
29 (def-with-errptr rocksdb-open-as-secondary (* rocksdb)
30  (opts (* rocksdb-options))
31  (name c-string)
32  (secondary-path c-string))