summaryrefslogtreecommitdiffstats
path: root/src/crimson/osd/pg_backend.h
diff options
context:
space:
mode:
authorMatan Breizman <mbreizma@redhat.com>2023-01-01 12:41:34 +0100
committerMatan Breizman <mbreizma@redhat.com>2024-01-04 16:43:57 +0100
commitb5df21f55606d58077333df42bc3af98fa1a3d3c (patch)
tree0dba377e86401aacbe557ebfcc48bfba4924ef71 /src/crimson/osd/pg_backend.h
parentcrimson/osd/replicated_recovery_backend: handle_pull_response() - recalc_subs... (diff)
downloadceph-b5df21f55606d58077333df42bc3af98fa1a3d3c.tar.xz
ceph-b5df21f55606d58077333df42bc3af98fa1a3d3c.zip
crimson/osd: Keep track of modified_ranges
* `modifies_ranges` interval_set is added to osd_op_params_t * keep track of modified_ranges while executing relevant ops * Add `osd_op_params` parameter to `PGBackend::remove()`. Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/crimson/osd/pg_backend.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crimson/osd/pg_backend.h b/src/crimson/osd/pg_backend.h
index aa26b2cd2c1..981a983075b 100644
--- a/src/crimson/osd/pg_backend.h
+++ b/src/crimson/osd/pg_backend.h
@@ -149,8 +149,10 @@ public:
remove_iertr::future<> remove(
ObjectState& os,
ceph::os::Transaction& txn,
+ osd_op_params_t& osd_op_params,
object_stat_sum_t& delta_stats,
- bool whiteout);
+ bool whiteout,
+ int num_bytes);
interruptible_future<> remove(
ObjectState& os,
ceph::os::Transaction& txn);
@@ -432,6 +434,7 @@ private:
ceph::os::Transaction& txn,
object_stat_sum_t& delta_stats);
void update_size_and_usage(object_stat_sum_t& delta_stats,
+ interval_set<uint64_t>& modified,
object_info_t& oi, uint64_t offset,
uint64_t length, bool write_full = false);
void truncate_update_size_and_usage(