You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
629 B
C
25 lines
629 B
C
// Copyright 2022, The Cozo Project Authors.
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
// If a copy of the MPL was not distributed with this file,
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
#ifndef COZOROCKS_OPTS_H
|
|
#define COZOROCKS_OPTS_H
|
|
|
|
#include "common.h"
|
|
|
|
inline void set_w_opts_sync(WriteOptions& opts, bool val) {
|
|
opts.sync = val;
|
|
}
|
|
|
|
inline void set_w_opts_disable_wal(WriteOptions& opts, bool val) {
|
|
opts.disableWAL = val;
|
|
}
|
|
|
|
inline void set_w_opts_no_slowdown(WriteOptions& opts, bool val) {
|
|
opts.no_slowdown = val;
|
|
}
|
|
|
|
#endif //COZOROCKS_OPTS_H
|