]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libcephfs: disable ceph_set_default_preferred_pg
authorSage Weil <sage.weil@dreamhost.com>
Fri, 20 Apr 2012 04:48:24 +0000 (21:48 -0700)
committerSage Weil <sage@newdream.net>
Mon, 23 Apr 2012 21:48:01 +0000 (14:48 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/libcephfs.cc

index f70c71a9bdf28574e15bc8cea9e917e29844ae81..4348fe2284f2773e8c54b51fb7dd99827cd4bd2c 100644 (file)
@@ -576,8 +576,8 @@ extern "C" int ceph_set_default_file_replication(struct ceph_mount_info *cmount,
 
 extern "C" int ceph_set_default_preferred_pg(struct ceph_mount_info *cmount, int osd)
 {
-  cmount->get_client()->set_default_preferred_pg(osd);
-  return 0;
+  // this option no longer exists
+  return -EOPNOTSUPP;
 }
 
 extern "C" int ceph_get_file_stripe_address(struct ceph_mount_info *cmount, int fh,