Commit 07993e48 authored by Ramon Nou's avatar Ramon Nou
Browse files

clean inline

parent 7d7a8dfe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ public:
     */
    off_t
    increase_size(const std::string& key, size_t io_size, off_t offset,
                  bool append);
                  bool append, bool clear_inline = false);

    /**
     * @brief Decreases only the size part of the metadata entry via a RocksDB
+8 −2
Original line number Diff line number Diff line
@@ -104,11 +104,12 @@ private:
     */
    uint16_t merge_id_;
    bool append_;
    bool clear_inline_;

public:
    IncreaseSizeOperand(size_t size);
    IncreaseSizeOperand(size_t size, bool clear_inline = false);

    IncreaseSizeOperand(size_t size, uint16_t merge_id, bool append);
    IncreaseSizeOperand(size_t size, uint16_t merge_id, bool append, bool clear_inline = false);

    explicit IncreaseSizeOperand(const rdb::Slice& serialized_op);

@@ -132,6 +133,11 @@ public:
    append() const {
        return append_;
    }
    
    bool
    clear_inline() const {
        return clear_inline_;
    }
};
/**
 * @brief Decrease size operand
+3 −3
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ public:

    virtual off_t
    increase_size(const std::string& key, size_t size, off_t offset,
                  bool append) = 0;
                  bool append, bool clear_inline = false) = 0;

    virtual void
    decrease_size(const std::string& key, size_t size) = 0;
@@ -133,9 +133,9 @@ public:

    off_t
    increase_size(const std::string& key, size_t size, off_t offset,
                  bool append) {
                  bool append, bool clear_inline = false) {
        return static_cast<T&>(*this).increase_size_impl(key, size, offset,
                                                         append);
                                                         append, clear_inline);
    }

    void
+1 −1
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ public:
     */
    off_t
    increase_size_impl(const std::string& key, size_t io_size, off_t offset,
                       bool append);
                       bool append, bool clear_inline = false);

    /**
     * Decreases the size on the metadata
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ public:
     */
    off_t
    increase_size_impl(const std::string& key, size_t io_size, off_t offset,
                       bool append);
                       bool append, bool clear_inline = false);

    /**
     * Decreases the size on the metadata
Loading