delete opt

optimize delete passing the path

Edited by Ramon Nou

Merge request reports

Loading
+9 −0
Changes for CMake/gkfs-options.cmake: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -227,6 +227,15 @@ gkfs_define_option(
    DEFAULT_VALUE OFF
)

# build performance tests
gkfs_define_option(
    GKFS_BUILD_PERFORMANCE
    HELP_TEXT "Build ${PROJECT_NAME} performance benchmarks"
    DEFAULT_VALUE OFF
    DESCRIPTION "Compile standalone performance benchmark tests"
    FEATURE_NAME "PERF"
)

# build tools
gkfs_define_option(
    GKFS_BUILD_TOOLS
+5 −0
Changes for include/client/rpc/forward_metadata.hpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -84,6 +84,11 @@ int
forward_remove(const std::string& path, bool rm_dir, const int8_t num_copies,
               int64_t size);

int
forward_remove(const std::string& path, bool rm_dir, const int8_t num_copies,
               int64_t& size, uint32_t& mode, std::string& target_path,
               bool is_rename_stub = false);

int
forward_decr_size(const std::string& path, size_t length, const int copy);

+1 −1
Changes for include/client/gkfs_functions.hpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ int
gkfs_libcremove(const std::string& path);

int
gkfs_remove(const std::string& path);
gkfs_remove(const std::string& path, bool is_rename_stub = false);

// Implementation of access,
// Follow links is true by default
+1 −1
Changes for include/client/user_functions.hpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ gkfs_create(const std::string& path, mode_t mode);
int
gkfs_libcremove(const std::string& path);
int
gkfs_remove(const std::string& path);
gkfs_remove(const std::string& path, bool is_rename_stub = false);
int
gkfs_rmdir(const std::string& path);

+4 −2
Changes for include/common/rpc/rpc_types_thallium.hpp: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -131,11 +131,12 @@ struct rpc_stat_out_t {
struct rpc_rm_node_in_t {
    std::string path;
    bool rm_dir;
    bool is_rename_stub;

    template <class Archive>
    void
    serialize(Archive& ar) {
        ar(path, rm_dir);
        ar(path, rm_dir, is_rename_stub);
    }
};

@@ -143,11 +144,12 @@ struct rpc_rm_metadata_out_t {
    int32_t err;
    int64_t size;
    uint32_t mode;
    std::string target_path;

    template <class Archive>
    void
    serialize(Archive& ar) {
        ar(err, size, mode);
        ar(err, size, mode, target_path);
    }
};

Loading
Loading