]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: proper check for get_data_pool compatibility 11755/head
authorMykola Golub <mgolub@mirantis.com>
Thu, 3 Nov 2016 08:34:35 +0000 (10:34 +0200)
committerMykola Golub <mgolub@mirantis.com>
Thu, 3 Nov 2016 13:27:14 +0000 (15:27 +0200)
Fixes: http://tracker.ceph.com/issues/17791
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/image/OpenRequest.cc

index 4fa036eae15a9ba0cda6bb5a213a34e29fab92dd..e6c7655a6ef0d9cc09332b6a995791f296068031 100644 (file)
@@ -303,7 +303,7 @@ Context *OpenRequest<I>::handle_v2_get_data_pool(int *result) {
   if (*result == 0) {
     bufferlist::iterator it = m_out_bl.begin();
     *result = cls_client::get_data_pool_finish(&it, &data_pool_id);
-  } else if (*result == -ENOEXEC) {
+  } else if (*result == -EOPNOTSUPP) {
     *result = 0;
   }