]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/db_stress_tool/db_stress_shared_state.cc
import quincy beta 17.1.0
[ceph.git] / ceph / src / rocksdb / db_stress_tool / db_stress_shared_state.cc
CommitLineData
11fdf7f2
TL
1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2// This source code is licensed under both the GPLv2 (found in the
3// COPYING file in the root directory) and Apache 2.0 License
4// (found in the LICENSE.Apache file in the root directory).
5//
6// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
7// Use of this source code is governed by a BSD-style license that can be
8// found in the LICENSE file. See the AUTHORS file for names of contributors.
f67539c2 9//
11fdf7f2 10
f67539c2
TL
11#ifdef GFLAGS
12#include "db_stress_tool/db_stress_shared_state.h"
11fdf7f2 13
f67539c2
TL
14namespace ROCKSDB_NAMESPACE {
15const uint32_t SharedState::UNKNOWN_SENTINEL = 0xfffffffe;
16const uint32_t SharedState::DELETION_SENTINEL = 0xffffffff;
20effc67
TL
17#if defined(ROCKSDB_SUPPORT_THREAD_LOCAL)
18#if defined(OS_SOLARIS)
19__thread bool SharedState::ignore_read_error;
20#else
21thread_local bool SharedState::ignore_read_error;
22#endif // OS_SOLARIS
23#else
24bool SharedState::ignore_read_error;
25#endif // ROCKSDB_SUPPORT_THREAD_LOCAL
f67539c2
TL
26} // namespace ROCKSDB_NAMESPACE
27#endif // GFLAGS