manifest_ops.h 806 B

1234567891011121314151617181920
  1. // Copyright (c) Meta Platforms, Inc. and affiliates.
  2. //
  3. // This source code is licensed under both the GPLv2 (found in the
  4. // COPYING file in the root directory) and Apache 2.0 License
  5. // (found in the LICENSE.Apache file in the root directory).
  6. #pragma once
  7. #include <cassert>
  8. #include "rocksdb/env.h"
  9. namespace ROCKSDB_NAMESPACE {
  10. // Parameter is_retry=true sets the verify_and_reconstruct_read flag.
  11. // It comes handy when caller intends to re-read the data with much stronger
  12. // data integrity checking - e.g. in case of a perceived file corruption.
  13. Status GetCurrentManifestPath(const std::string& dbname, FileSystem* fs,
  14. bool is_retry, std::string* manifest_path,
  15. uint64_t* manifest_file_number);
  16. } // namespace ROCKSDB_NAMESPACE