]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: keep v1 stubs to preserve ABI
authorSage Weil <sage@redhat.com>
Thu, 26 Jan 2017 23:17:27 +0000 (18:17 -0500)
committerSage Weil <sage@redhat.com>
Thu, 9 Feb 2017 02:50:27 +0000 (21:50 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/include/rados/librados.h
src/librados/librados.cc

index 9f6f343c35eb1a2c4dc5a0e92709dabb67889b04..9d02093a2df3e153d4c294ff4c211a15c6b160b5 100644 (file)
@@ -3450,6 +3450,25 @@ CEPH_RADOS_API int rados_monitor_log(rados_t cluster, const char *level,
 
 /** @} Mon/OSD/PG commands */
 
+/*
+ * These methods are no longer supported and return -ENOTSUP where possible.
+ */
+CEPH_RADOS_API int rados_objects_list_open(
+  rados_ioctx_t io,
+  rados_list_ctx_t *ctx) __attribute__((deprecated));
+CEPH_RADOS_API uint32_t rados_objects_list_get_pg_hash_position(
+  rados_list_ctx_t ctx) __attribute__((deprecated));
+CEPH_RADOS_API uint32_t rados_objects_list_seek(
+  rados_list_ctx_t ctx,
+  uint32_t pos) __attribute__((deprecated));
+CEPH_RADOS_API int rados_objects_list_next(
+  rados_list_ctx_t ctx,
+  const char **entry,
+  const char **key) __attribute__((deprecated));
+CEPH_RADOS_API void rados_objects_list_close(
+  rados_list_ctx_t ctx) __attribute__((deprecated));
+
+
 #ifdef __cplusplus
 }
 #endif
index ad25a518d8592fda9c6b09e2f135c77f1987d424..618c7683cb72af08a2c9d13f30549268315518b5 100644 (file)
@@ -4201,6 +4201,45 @@ extern "C" int rados_nobjects_list_next(rados_list_ctx_t listctx, const char **e
 }
 
 
+/*
+ * removed legacy v2 list objects stubs
+ *
+ * thse return -ENOTSUP where possible.
+ */
+extern "C" int rados_objects_list_open(
+  rados_ioctx_t io,
+  rados_list_ctx_t *ctx)
+{
+  return -ENOTSUP;
+}
+
+extern "C" uint32_t rados_objects_list_get_pg_hash_position(
+  rados_list_ctx_t ctx)
+{
+  return 0;
+}
+
+extern "C" uint32_t rados_objects_list_seek(
+  rados_list_ctx_t ctx,
+  uint32_t pos)
+{
+  return 0;
+}
+
+extern "C" int rados_objects_list_next(
+  rados_list_ctx_t ctx,
+  const char **entry,
+  const char **key)
+{
+  return -ENOTSUP;
+}
+
+extern "C" void rados_objects_list_close(
+  rados_list_ctx_t ctx)
+{
+}
+
+
 // -------------------------
 // aio