Skip to content

Commit fdfd15b

Browse files
committed
Fix compilation error
1 parent 6777073 commit fdfd15b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/Disks/ObjectStorages/IObjectStorage.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,17 @@ struct RelativePathWithMetadata
146146

147147
RelativePathWithMetadata() = default;
148148

149-
explicit RelativePathWithMetadata(String relative_path_, std::optional<ObjectMetadata> metadata_ = std::nullopt)
150-
: relative_path(std::move(relative_path_))
149+
explicit RelativePathWithMetadata(String command_or_path, std::optional<ObjectMetadata> metadata_ = std::nullopt)
150+
: relative_path(std::move(command_or_path))
151151
, metadata(std::move(metadata_))
152-
{}
153-
explicit RelativePathWithMetadata(const DataFileInfo & info, std::optional<ObjectMetadata> metadata_ = std::nullopt);
154-
155-
explicit RelativePathWithMetadata(const String & task_string, std::optional<ObjectMetadata> metadata_ = std::nullopt)
156-
: metadata(std::move(metadata_))
157-
, command(task_string)
152+
, command(relative_path)
158153
{
159-
if (!command.is_parsed())
160-
relative_path = task_string;
154+
if (command.is_parsed())
155+
relative_path = "";
161156
}
162157

158+
explicit RelativePathWithMetadata(const DataFileInfo & info, std::optional<ObjectMetadata> metadata_ = std::nullopt);
159+
163160
RelativePathWithMetadata(const RelativePathWithMetadata & other) = default;
164161

165162
virtual ~RelativePathWithMetadata() = default;

0 commit comments

Comments
 (0)