Merge pull request #2477 from flowbehappy/clang-compliant

Clang compliant on macosx
This commit is contained in:
alexey-milovidov 2018-06-07 17:43:30 +03:00 committed by GitHub
commit af8a552b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ namespace ErrorCodes
static void localBackupImpl(const Poco::Path & source_path, const Poco::Path & destination_path, size_t level,
std::optional<size_t> max_level)
{
if (max_level && level > max_level.value())
if (max_level && level > *max_level)
return;
if (level >= 1000)