Skip to content

Commit c6eb35b

Browse files
author
Mark Nelson
committed
osd/ECTransaction: Remove incorrect asserts in generate_transactions
Back in PR ceph#11701 when EC Overwrites were added, there was significant churn in the ECTransaction code. Several asserts were added in generate_transactions, but the code changed several times and it appears some of those asserts don't make sense in the final version of the PR. This PR removes two of those asserts. The first doesn't appear to be necessary given how the surrounding conditional block changed. The second appears to be an incorrect assert that was left over from an earlier commit that no longer should be in place given the logic that was added to handle truncate (which roughly mirrors what we do in ReplicatedBackend). It's possible the assert for obc and entry are also unnecessary, however I left those in place for now. Fixes: https://tracker.ceph.com/issues/65509 Signed-off-by: Mark Nelson <[email protected]>
1 parent 117f85b commit c6eb35b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/osd/ECTransaction.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ void ECTransaction::generate_transactions(
193193
xattr_rollback[ECUtil::get_hinfo_key()] = old_hinfo;
194194

195195
if (op.is_none() && op.truncate && op.truncate->first == 0) {
196-
ceph_assert(op.truncate->first == 0);
197-
ceph_assert(op.truncate->first ==
198-
op.truncate->second);
199196
ceph_assert(entry);
200197
ceph_assert(obc);
201198

0 commit comments

Comments
 (0)