fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
9 years ago
|
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
|
||
8 years ago
|
// This source code is licensed under both the GPLv2 (found in the
|
||
|
// COPYING file in the root directory) and Apache 2.0 License
|
||
|
// (found in the LICENSE.Apache file in the root directory).
|
||
10 years ago
|
//
|
||
9 years ago
|
#pragma once
|
||
10 years ago
|
#include <string>
|
||
|
|
||
6 years ago
|
#include "file/filename.h"
|
||
8 years ago
|
#include "options/db_options.h"
|
||
8 years ago
|
#include "rocksdb/env.h"
|
||
10 years ago
|
#include "rocksdb/status.h"
|
||
|
#include "rocksdb/types.h"
|
||
|
|
||
|
namespace rocksdb {
|
||
8 years ago
|
// use_fsync maps to options.use_fsync, which determines the way that
|
||
|
// the file is synced after copying.
|
||
10 years ago
|
extern Status CopyFile(Env* env, const std::string& source,
|
||
8 years ago
|
const std::string& destination, uint64_t size,
|
||
|
bool use_fsync);
|
||
10 years ago
|
|
||
9 years ago
|
extern Status CreateFile(Env* env, const std::string& destination,
|
||
6 years ago
|
const std::string& contents, bool use_fsync);
|
||
9 years ago
|
|
||
6 years ago
|
extern Status DeleteDBFile(const ImmutableDBOptions* db_options,
|
||
6 years ago
|
const std::string& fname,
|
||
|
const std::string& path_to_sync,
|
||
|
const bool force_bg = false);
|
||
6 years ago
|
|
||
10 years ago
|
} // namespace rocksdb
|