summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/truncate.h
blob: ee00e4f163ee7d1792eda5e479fe07a06f8f03cb (plain)
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
/*-
 * Copyright (c) 2014-present MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

/*
 * WT_TRUNCATE_INFO
 *	A set of context associated with a range truncate operation.
 */
struct __wt_truncate_info {
    WT_SESSION_IMPL *session;
    const char *uri;
    WT_CURSOR *start;
    WT_CURSOR *stop;
    WT_ITEM *orig_start_key;
    WT_ITEM *orig_stop_key;

/* AUTOMATIC FLAG VALUE GENERATION START 0 */
#define WT_TRUNC_EXPLICIT_START 0x1u
#define WT_TRUNC_EXPLICIT_STOP 0x2u
    /* AUTOMATIC FLAG VALUE GENERATION STOP 32 */
    uint32_t flags;
};