Skip to content

Commit

Permalink
Remove outdated patches
Browse files Browse the repository at this point in the history
  • Loading branch information
DimasKovas committed May 10, 2023
1 parent 7572455 commit c331b9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions contrib/clickhouse/src/Common/ZooKeeper/TestKeeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,16 @@ std::pair<ResponsePtr, Undo> TestKeeperListRequest::process(TestKeeper::Containe
child_it != container.end() && startsWith(child_it->first, path_prefix);
++child_it)
{
using enum ListRequestType;
if (parentPath(child_it->first) == path)
{
ListRequestType list_request_type = ListRequestType::ALL;
ListRequestType list_request_type = ALL;
if (const auto * filtered_list = dynamic_cast<const TestKeeperFilteredListRequest *>(this))
list_request_type = filtered_list->list_request_type;

const auto is_ephemeral = child_it->second.stat.ephemeralOwner != 0;
if (list_request_type == ListRequestType::ALL || (is_ephemeral && list_request_type == ListRequestType::EPHEMERAL_ONLY)
|| (!is_ephemeral && list_request_type == ListRequestType::PERSISTENT_ONLY))
if (list_request_type == ALL || (is_ephemeral && list_request_type == EPHEMERAL_ONLY)
|| (!is_ephemeral && list_request_type == PERSISTENT_ONLY))
response.names.emplace_back(baseName(child_it->first));
}
}
Expand Down
2 changes: 0 additions & 2 deletions contrib/clickhouse/src/Interpreters/SystemLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ class SystemLog : public SystemLogBase<LogElement>, private boost::noncopyable,

/// flushImpl can be executed only in saving_thread.
void flushImpl(const std::vector<LogElement> & to_flush, uint64_t to_flush_end);

public:
ASTPtr getCreateTableQuery();
};

Expand Down

0 comments on commit c331b9b

Please sign in to comment.