Skip to content

Commit d1b148c

Browse files
committed
Fix improper merge
1 parent 8270dc1 commit d1b148c

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

cloud/aws/aws_env.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -595,16 +595,6 @@ Status AwsEnv::NewAwsEnv(Env* base_env, const CloudEnvOptions& cloud_options,
595595
return status;
596596
}
597597

598-
uint64_t AwsEnv::gettid() {
599-
#ifdef _WIN32_WINNT
600-
return static_cast<uint64_t>(::GetCurrentThreadId());
601-
#else
602-
static_assert(sizeof(pthread_t) <= sizeof(uint64_t),
603-
"pthread_t is expected to be smaller or equal than 64-bit");
604-
return static_cast<uint64_t>(pthread_self());
605-
#endif
606-
}
607-
608598
std::string AwsEnv::GetWALCacheDir() {
609599
return cloud_env_options.cloud_log_controller->GetCacheDir();
610600
}

cloud/cloud_env_impl.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#include "rocksdb/status.h"
2121
#include "util/xxhash.h"
2222

23-
#ifdef _MSC_VER
24-
#undef GetObject
25-
#endif
26-
2723
namespace rocksdb {
2824

2925
CloudEnvImpl::CloudEnvImpl(const CloudEnvOptions& opts, Env* base,

table/block_based/block_based_table_reader.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4094,12 +4094,10 @@ uint64_t BlockBasedTable::ApproximateOffsetOf(const Slice& key,
40944094
TableReaderCaller caller) {
40954095
BlockCacheLookupContext context(caller);
40964096
IndexBlockIter iiter_on_stack;
4097-
40984097
ReadOptions ro;
40994098
ro.total_order_seek = true;
4100-
41014099
auto index_iter =
4102-
NewIndexIterator(ro, /*disable_prefix_seek=*/false,
4100+
NewIndexIterator(ro, /*disable_prefix_seek=*/true,
41034101
/*input_iter=*/&iiter_on_stack, /*get_context=*/nullptr,
41044102
/*lookup_context=*/&context);
41054103
std::unique_ptr<InternalIteratorBase<IndexValue>> iiter_unique_ptr;
@@ -4117,12 +4115,10 @@ uint64_t BlockBasedTable::ApproximateSize(const Slice& start, const Slice& end,
41174115

41184116
BlockCacheLookupContext context(caller);
41194117
IndexBlockIter iiter_on_stack;
4120-
41214118
ReadOptions ro;
41224119
ro.total_order_seek = true;
4123-
41244120
auto index_iter =
4125-
NewIndexIterator(ro, /*disable_prefix_seek=*/false,
4121+
NewIndexIterator(ro, /*disable_prefix_seek=*/true,
41264122
/*input_iter=*/&iiter_on_stack, /*get_context=*/nullptr,
41274123
/*lookup_context=*/&context);
41284124
std::unique_ptr<InternalIteratorBase<IndexValue>> iiter_unique_ptr;

0 commit comments

Comments
 (0)