Skip to content

Commit

Permalink
Merge pull request #32376 from ClickHouse/revert_25122
Browse files Browse the repository at this point in the history
Revert "graphite: split tagged/plain rollup rules (for merges perfoma…
  • Loading branch information
Felixoid committed Dec 8, 2021
2 parents 4c44303 + 03927f5 commit 4cc45c1
Show file tree
Hide file tree
Showing 27 changed files with 266 additions and 2,705 deletions.
5 changes: 1 addition & 4 deletions base/base/StringRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ struct StringRef
std::string toString() const { return std::string(data, size); }

explicit operator std::string() const { return toString(); }

std::string_view toView() const { return std::string_view(data, size); }

constexpr explicit operator std::string_view() const { return std::string_view(data, size); }
constexpr explicit operator std::string_view() const { return {data, size}; }
};

/// Here constexpr doesn't implicate inline, see https://www.viva64.com/en/w/v1043/
Expand Down
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ if (ENABLE_TESTS AND USE_GTEST)
clickhouse_parsers
clickhouse_storages_system
dbms
clickhouse_common_config
clickhouse_common_zookeeper
string_utils)

Expand Down
7 changes: 0 additions & 7 deletions src/Common/tests/gtest_global_context.cpp

This file was deleted.

6 changes: 5 additions & 1 deletion src/Common/tests/gtest_global_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ struct ContextHolder
ContextHolder(ContextHolder &&) = default;
};

const ContextHolder & getContext();
inline const ContextHolder & getContext()
{
static ContextHolder holder;
return holder;
}

0 comments on commit 4cc45c1

Please sign in to comment.