diff --git a/fs/fs_zenfs.cc b/fs/fs_zenfs.cc index 7eb5b2bb..7161d921 100644 --- a/fs/fs_zenfs.cc +++ b/fs/fs_zenfs.cc @@ -1477,7 +1477,7 @@ Status ZenFS::MkFS(std::string aux_fs_p, uint32_t finish_threshold) { super.EncodeTo(&super_string); s = log->AddRecord(super_string); - if (!s.ok()) return std::move(s); + if (!s.ok()) return static_cast(s); /* Write an empty snapshot to make the metadata zone valid */ s = PersistSnapshot(log.get());