#pragma once #include #include #include namespace DB { struct PinnedPartUUIDs { std::set part_uuids; Coordination::Stat stat{}; bool contains(const UUID & part_uuid) const { return part_uuids.contains(part_uuid); } String toString() const; void fromString(const String & buf); private: static constexpr auto JSON_KEY_UUIDS = "part_uuids"; }; }