Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Apr 12, 2024
1 parent 35dbbab commit 4b88da2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion extension/httpfs/src/httpfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ int64_t HTTPFileSystem::readFile(common::FileInfo& fileInfo, void* buf, size_t n
return numBytes;
}

void HTTPFileSystem::syncFile(const common::FileInfo&) {
void HTTPFileSystem::syncFile(const common::FileInfo&) const {
throw NotImplementedException("syncFile is not supported in HTTPFileSystem");
}

Expand Down
2 changes: 1 addition & 1 deletion extension/httpfs/src/include/httpfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HTTPFileSystem : public common::FileSystem {

static std::unique_ptr<httplib::Headers> getHTTPHeaders(HeaderMap& headerMap);

void syncFile(const common::FileInfo& fileInfo) override;
void syncFile(const common::FileInfo& fileInfo) const override;

protected:
void readFromFile(common::FileInfo& fileInfo, void* buffer, uint64_t numBytes,
Expand Down
2 changes: 1 addition & 1 deletion src/common/file_system/local_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void LocalFileSystem::writeFile(FileInfo& fileInfo, const uint8_t* buffer, uint6
}
}

void LocalFileSystem::syncFile(const FileInfo& fileInfo) {
void LocalFileSystem::syncFile(const FileInfo& fileInfo) const {
auto& localFileInfo = ku_dynamic_cast<const FileInfo&, const LocalFileInfo&>(fileInfo);
if (fsync(localFileInfo.fd)) {
throw IOException(stringFormat("Failed to sync file {}.", fileInfo.path));
Expand Down
2 changes: 1 addition & 1 deletion src/common/file_system/virtual_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void VirtualFileSystem::writeFile(FileInfo& /*fileInfo*/, const uint8_t* /*buffe
KU_UNREACHABLE;
}

void VirtualFileSystem::syncFile(const FileInfo& fileInfo) {
void VirtualFileSystem::syncFile(const FileInfo& fileInfo) const {
findFileSystem(fileInfo.path)->syncFile(fileInfo);
}

Expand Down
2 changes: 1 addition & 1 deletion src/include/common/file_system/file_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class KUZU_API FileSystem {

virtual bool canHandleFile(const std::string& /*path*/) const { KU_UNREACHABLE; }

virtual void syncFile(const FileInfo& fileInfo) = 0;
virtual void syncFile(const FileInfo& fileInfo) const = 0;

protected:
virtual void readFromFile(FileInfo& fileInfo, void* buffer, uint64_t numBytes,
Expand Down
2 changes: 1 addition & 1 deletion src/include/common/file_system/local_file_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LocalFileSystem final : public FileSystem {

std::string expandPath(main::ClientContext* context, const std::string& path) const override;

void syncFile(const FileInfo& fileInfo) override;
void syncFile(const FileInfo& fileInfo) const override;

protected:
void readFromFile(FileInfo& fileInfo, void* buffer, uint64_t numBytes,
Expand Down
2 changes: 1 addition & 1 deletion src/include/common/file_system/virtual_file_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class VirtualFileSystem final : public FileSystem {

std::string expandPath(main::ClientContext* context, const std::string& path) const override;

virtual void syncFile(const FileInfo& fileInfo) override;
void syncFile(const FileInfo& fileInfo) const override;

protected:
void readFromFile(FileInfo& fileInfo, void* buffer, uint64_t numBytes,
Expand Down
1 change: 0 additions & 1 deletion src/storage/store/column_chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "common/types/internal_id_t.h"
#include "common/types/types.h"
#include "storage/compression/compression.h"
#include "storage/storage_utils.h"
#include "storage/store/list_column_chunk.h"
#include "storage/store/string_column_chunk.h"
#include "storage/store/struct_column_chunk.h"
Expand Down

0 comments on commit 4b88da2

Please sign in to comment.