]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
objclass: deprecate cls_cxx_gather
authornmordech@redhat.com <nmordech@redhat.com>
Mon, 4 Mar 2024 13:34:39 +0000 (13:34 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 9 May 2024 08:31:17 +0000 (08:31 +0000)
cls_cxx_gather is not maintained and having issues with retry.
since there is no current use of it, we will deprecate it.

Fixes: https://tracker.ceph.com/issues/64258
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
PendingReleaseNotes
src/crimson/osd/objclass.cc
src/objclass/objclass.h

index fa4c73fe5dae15cef7b5fb437fc4f55d4ab183ee..993fafd0ac922b07c9d9795e0a273fec857141e5 100644 (file)
@@ -193,6 +193,7 @@ CephFS: Disallow delegating preallocated inode ranges to clients. Config
   cluster, MDS_CLIENTS_BROKEN_ROOTSQUASH. See the documentation on this warning
   and the new feature bit for more information.
 
+* cls_cxx_gather is marked as deprecated.
 
 >=18.0.0
 
index 4cc9d73369d674f676a0aa975de05e9439bc516c..e62d96c16b3828b6d263a11dfa74c1bb0f0cdde0 100644 (file)
@@ -552,17 +552,6 @@ uint64_t cls_get_osd_min_alloc_size(cls_method_context_t hctx) {
   return 4096;
 }
 
-int cls_cxx_gather(cls_method_context_t hctx, const std::set<std::string> &src_objs, const std::string& pool,
-                  const char *cls, const char *method, bufferlist& inbl)
-{
-  return 0;
-}
-
-int cls_cxx_get_gathered_data(cls_method_context_t hctx, std::map<std::string, bufferlist> *results)
-{
-  return 0;
-}
-
 // although at first glance the implementation looks the same as in
 // the classical OSD, it's different b/c of how the dout macro expands.
 int cls_log(int level, const char *format, ...)
index 9dbc2bc6ae3db09d4291a92af3d13dc3c6b35ccb..fdb900616245b46ea685120d48c13f23da4ab372 100644 (file)
@@ -153,7 +153,7 @@ extern int cls_get_snapset_seq(cls_method_context_t hctx, uint64_t *snap_seq);
 
 /* gather */
 extern int cls_cxx_gather(cls_method_context_t hctx, const std::set<std::string> &src_objs, const std::string& pool,
-                         const char *cls, const char *method, bufferlist& inbl);
+                         const char *cls, const char *method, bufferlist& inbl) __attribute__ ((deprecated));
 
 extern int cls_cxx_get_gathered_data(cls_method_context_t hctx, std::map<std::string, bufferlist> *results);