diff options
| author | Stefan Boberg <[email protected]> | 2021-09-20 12:08:44 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-20 12:08:44 +0200 |
| commit | 782351959f697fca6b0804c134467b7d9c29da1a (patch) | |
| tree | fdd6c841a567e69e3d0b45089de70c7e7d0bb756 /zenstore/caslog.cpp | |
| parent | trivial: include cleanup (diff) | |
| download | zen-782351959f697fca6b0804c134467b7d9c29da1a.tar.xz zen-782351959f697fca6b0804c134467b7d9c29da1a.zip | |
Moved more code into zen namespace, for consistency
Also removed snapshot_manifest (remnants of vfs prototype)
Diffstat (limited to 'zenstore/caslog.cpp')
| -rw-r--r-- | zenstore/caslog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/caslog.cpp b/zenstore/caslog.cpp index 70bcf4669..dc6021544 100644 --- a/zenstore/caslog.cpp +++ b/zenstore/caslog.cpp @@ -62,7 +62,7 @@ CasLogFile::Open(std::filesystem::path FileName, size_t RecordSize, bool IsCreat if (IsCreate) { // Initialize log by writing header - FileHeader Header = {.RecordSize = gsl::narrow<uint32_t>(RecordSize), .LogId = zen::Oid::NewOid(), .ValidatedTail = 0}; + FileHeader Header = {.RecordSize = gsl::narrow<uint32_t>(RecordSize), .LogId = Oid::NewOid(), .ValidatedTail = 0}; memcpy(Header.Magic, FileHeader::MagicSequence, sizeof Header.Magic); Header.Finalize(); @@ -128,7 +128,7 @@ CasLogFile::Replay(std::function<void(const void*)>&& Handler) if (FAILED(hRes)) { - zen::ThrowSystemException(hRes, "Failed to read log file"); + ThrowSystemException(hRes, "Failed to read log file"); } for (int i = 0; i < LogEntryCount; ++i) @@ -144,7 +144,7 @@ CasLogFile::Append(const void* DataPointer, uint64_t DataSize) if (FAILED(hRes)) { - zen::ThrowSystemException(hRes, "Failed to write to log file '{}'"_format(zen::PathFromHandle(m_File))); + ThrowSystemException(hRes, "Failed to write to log file '{}'"_format(PathFromHandle(m_File))); } } |