Skip to content

Commit 6d36b0d

Browse files
Merge pull request ceph#55923 from NitzanMordhai/wip-nitzan-add-deprecate-cls-gather
objclass: deprecate cls_cxx_gather
2 parents 0f060f6 + 0928f7b commit 6d36b0d

File tree

8 files changed

+3
-171
lines changed

8 files changed

+3
-171
lines changed

PendingReleaseNotes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ CephFS: Disallow delegating preallocated inode ranges to clients. Config
193193
cluster, MDS_CLIENTS_BROKEN_ROOTSQUASH. See the documentation on this warning
194194
and the new feature bit for more information.
195195

196+
* cls_cxx_gather is marked as deprecated.
196197

197198
>=18.0.0
198199

qa/workunits/rados/test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ for f in \
3636
api_service api_service_pp \
3737
api_c_write_operations \
3838
api_c_read_operations \
39-
api_cls_remote_reads \
4039
list_parallel \
4140
open_pools_parallel \
4241
delete_pools_parallel

src/cls/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,4 @@ set_target_properties(cls_fifo PROPERTIES
363363
target_link_libraries(cls_fifo ${FMT_LIB})
364364
install(TARGETS cls_fifo DESTINATION ${cls_dir})
365365

366-
# cls_test_remote_reads
367-
set(cls_test_remote_reads_srcs test_remote_reads/cls_test_remote_reads.cc)
368-
add_library(cls_test_remote_reads SHARED ${cls_test_remote_reads_srcs})
369-
set_target_properties(cls_test_remote_reads PROPERTIES
370-
VERSION "1.0.0"
371-
SOVERSION "1"
372-
INSTALL_RPATH ""
373-
CXX_VISIBILITY_PRESET hidden)
374-
install(TARGETS cls_test_remote_reads DESTINATION ${cls_dir})
366+

src/cls/test_remote_reads/cls_test_remote_reads.cc

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/crimson/osd/objclass.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -552,17 +552,6 @@ uint64_t cls_get_osd_min_alloc_size(cls_method_context_t hctx) {
552552
return 4096;
553553
}
554554

555-
int cls_cxx_gather(cls_method_context_t hctx, const std::set<std::string> &src_objs, const std::string& pool,
556-
const char *cls, const char *method, bufferlist& inbl)
557-
{
558-
return 0;
559-
}
560-
561-
int cls_cxx_get_gathered_data(cls_method_context_t hctx, std::map<std::string, bufferlist> *results)
562-
{
563-
return 0;
564-
}
565-
566555
// although at first glance the implementation looks the same as in
567556
// the classical OSD, it's different b/c of how the dout macro expands.
568557
int cls_log(int level, const char *format, ...)

src/objclass/objclass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ extern int cls_get_snapset_seq(cls_method_context_t hctx, uint64_t *snap_seq);
153153

154154
/* gather */
155155
extern int cls_cxx_gather(cls_method_context_t hctx, const std::set<std::string> &src_objs, const std::string& pool,
156-
const char *cls, const char *method, bufferlist& inbl);
156+
const char *cls, const char *method, bufferlist& inbl) __attribute__ ((deprecated));
157157

158158
extern int cls_cxx_get_gathered_data(cls_method_context_t hctx, std::map<std::string, bufferlist> *results);
159159

src/test/librados/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ add_executable(ceph_test_rados_api_snapshots_stats_pp
152152
target_link_libraries(ceph_test_rados_api_snapshots_stats_pp
153153
librados ${UNITTEST_LIBS} radostest-cxx)
154154

155-
add_executable(ceph_test_rados_api_cls_remote_reads
156-
cls_remote_reads.cc
157-
$<TARGET_OBJECTS:unit-main>)
158-
target_link_libraries(ceph_test_rados_api_cls_remote_reads
159-
librados global ${UNITTEST_LIBS} radostest-cxx)
160-
161155
install(TARGETS
162156
ceph_test_rados_api_aio
163157
ceph_test_rados_api_aio_pp
@@ -183,7 +177,6 @@ install(TARGETS
183177
ceph_test_rados_api_tier_pp
184178
ceph_test_rados_api_watch_notify
185179
ceph_test_rados_api_watch_notify_pp
186-
ceph_test_rados_api_cls_remote_reads
187180
DESTINATION ${CMAKE_INSTALL_BINDIR})
188181

189182
# unittest_librados

src/test/librados/cls_remote_reads.cc

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)