Project

General

Profile

Actions

Bug #64558

open

librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove

Added by Yuanrun Chen 2 months ago. Updated about 1 month ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy,reef,squid
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
librados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

librados::OPERATION_FULL_FORCE should be translated to CEPH_OSD_FLAG_FULL_FORCE before calling IoCtxImpl::remove().

diff --git a/src/librados/IoCtxImpl.cc b/src/librados/IoCtxImpl.cc
index d66b56560f9c3..947d8a4930aae 100644
--- a/src/librados/IoCtxImpl.cc
+++ b/src/librados/IoCtxImpl.cc
@@ -1235,7 +1235,7 @@ int librados::IoCtxImpl::remove(const object_t& oid)
   ::ObjectOperation op;
   prepare_assert_ops(&op);
   op.remove();
-  return operate(oid, &op, nullptr, librados::OPERATION_FULL_FORCE);
+  return operate(oid, &op, nullptr, CEPH_OSD_FLAG_FULL_FORCE);
 }

 int librados::IoCtxImpl::remove(const object_t& oid, int flags)

Related issues 3 (3 open0 closed)

Copied to RADOS - Backport #65040: reef: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::removeNewYuanrun ChenActions
Copied to RADOS - Backport #65041: quincy: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::removeNewYuanrun ChenActions
Copied to RADOS - Backport #65042: squid: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::removeNewYuanrun ChenActions
Actions #1

Updated by Radoslaw Zarzynski 2 months ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Ilya Dryomov about 2 months ago

  • Backport set to quincy,reef,squid
Actions #3

Updated by Ilya Dryomov about 2 months ago

  • Assignee set to Yuanrun Chen
Actions #4

Updated by Radoslaw Zarzynski about 2 months ago

Sent to QA.

Actions #5

Updated by Ilya Dryomov about 1 month ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Backport Bot about 1 month ago

  • Copied to Backport #65040: reef: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove added
Actions #7

Updated by Backport Bot about 1 month ago

  • Copied to Backport #65041: quincy: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove added
Actions #8

Updated by Backport Bot about 1 month ago

  • Copied to Backport #65042: squid: librados: use CEPH_OSD_FLAG_FULL_FORCE for IoCtxImpl::remove added
Actions #9

Updated by Backport Bot about 1 month ago

  • Tags set to backport_processed
Actions

Also available in: Atom PDF