/src/tarantool/src/box/wal_ext.h
Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /*  | 
2  |  |  * SPDX-License-Identifier: BSD-2-Clause  | 
3  |  |  *  | 
4  |  |  * Copyright 2010-2022, Tarantool AUTHORS, please see AUTHORS file.  | 
5  |  |  */  | 
6  |  | #pragma once  | 
7  |  |  | 
8  |  | #include "trivia/config.h"  | 
9  |  |  | 
10  |  | #if defined(ENABLE_WAL_EXT)  | 
11  |  | # include "wal_ext_impl.h"  | 
12  |  | #else /* !defined(ENABLE_WAL_EXT) */  | 
13  |  |  | 
14  |  | #if defined(__cplusplus)  | 
15  |  | extern "C" { | 
16  |  | #endif /* defined(__cplusplus) */  | 
17  |  |  | 
18  |  | #include <stddef.h>  | 
19  |  |  | 
20  |  | /** Initialize WAL extensions cache. */  | 
21  |  | static inline void  | 
22  |  | wal_ext_init(void)  | 
23  | 2  | { | 
24  | 2  | } Unexecuted instantiation: space.c:wal_ext_init Unexecuted instantiation: space_cache.c:wal_ext_init Unexecuted instantiation: txn.c:wal_ext_init  | 
25  |  |  | 
26  |  | /** Cleanup extensions cache and default value. */  | 
27  |  | static inline void  | 
28  |  | wal_ext_free(void)  | 
29  | 0  | { | 
30  | 0  | } Unexecuted instantiation: box.cc:wal_ext_free() Unexecuted instantiation: space.c:wal_ext_free Unexecuted instantiation: space_cache.c:wal_ext_free Unexecuted instantiation: txn.c:wal_ext_free  | 
31  |  |  | 
32  |  | struct space_wal_ext;  | 
33  |  | struct txn_stmt;  | 
34  |  | struct request;  | 
35  |  |  | 
36  |  | /**  | 
37  |  |  * Fills in @a request with data from @a stmt depending on space's WAL  | 
38  |  |  * extensions.  | 
39  |  |  */  | 
40  |  | static inline void  | 
41  |  | space_wal_ext_process_request(struct space_wal_ext *ext, struct txn_stmt *stmt,  | 
42  |  |             struct request *request)  | 
43  | 0  | { | 
44  | 0  |   (void)ext;  | 
45  | 0  |   (void)stmt;  | 
46  | 0  |   (void)request;  | 
47  | 0  | } Unexecuted instantiation: box.cc:space_wal_ext_process_request(space_wal_ext*, txn_stmt*, request*) Unexecuted instantiation: space.c:space_wal_ext_process_request Unexecuted instantiation: space_cache.c:space_wal_ext_process_request Unexecuted instantiation: txn.c:space_wal_ext_process_request  | 
48  |  |  | 
49  |  | /**  | 
50  |  |  * Return reference to corresponding WAL extension by given space name.  | 
51  |  |  * Returned object MUST NOT be freed or changed in any way; it should be  | 
52  |  |  * read-only.  | 
53  |  |  */  | 
54  |  | static inline struct space_wal_ext *  | 
55  |  | space_wal_ext_by_name(const char *space_name)  | 
56  | 0  | { | 
57  | 0  |   (void)space_name;  | 
58  | 0  |   return NULL;  | 
59  | 0  | } Unexecuted instantiation: box.cc:space_wal_ext_by_name(char const*) Unexecuted instantiation: space.c:space_wal_ext_by_name Unexecuted instantiation: space_cache.c:space_wal_ext_by_name Unexecuted instantiation: txn.c:space_wal_ext_by_name  | 
60  |  |  | 
61  |  | #if defined(__cplusplus)  | 
62  |  | } /* extern "C" */  | 
63  |  | #endif /* defined(__cplusplus) */  | 
64  |  |  | 
65  |  | #endif /* !defined(ENABLE_WAL_EXT) */  |