]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/cls/queue/cls_queue.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / cls / queue / cls_queue.cc
index 54bddb25498fa0e77c87324e1711d7c003f1757b..cf4daaac8b64701649289bdc37bf485482e75c20 100644 (file)
 #include "cls/queue/cls_queue_const.h"
 #include "cls/queue/cls_queue_src.h"
 
+using ceph::bufferlist;
+using ceph::decode;
+using ceph::encode;
+
 CLS_VER(1,0)
 CLS_NAME(queue)
 
@@ -20,7 +24,7 @@ static int cls_queue_init(cls_method_context_t hctx, bufferlist *in, bufferlist
   cls_queue_init_op op;
   try {
     decode(op, in_iter);
-  } catch (buffer::error& err) {
+  } catch (ceph::buffer::error& err) {
     CLS_LOG(1, "ERROR: cls_queue_init_op(): failed to decode entry\n");
     return -EINVAL;
   }
@@ -46,7 +50,7 @@ static int cls_queue_enqueue(cls_method_context_t hctx, bufferlist *in, bufferli
   cls_queue_enqueue_op op;
   try {
     decode(op, iter);
-  } catch (buffer::error& err) {
+  } catch (ceph::buffer::error& err) {
     CLS_LOG(1, "ERROR: cls_queue_enqueue: failed to decode input data \n");
     return -EINVAL;
   }
@@ -72,7 +76,7 @@ static int cls_queue_list_entries(cls_method_context_t hctx, bufferlist *in, buf
   cls_queue_list_op op;
   try {
     decode(op, in_iter);
-  } catch (buffer::error& err) {
+  } catch (ceph::buffer::error& err) {
     CLS_LOG(5, "ERROR: cls_queue_list_entries(): failed to decode input data\n");
     return -EINVAL;
   }
@@ -99,7 +103,7 @@ static int cls_queue_remove_entries(cls_method_context_t hctx, bufferlist *in, b
   cls_queue_remove_op op;
   try {
     decode(op, in_iter);
-  } catch (buffer::error& err) {
+  } catch (ceph::buffer::error& err) {
     CLS_LOG(5, "ERROR: cls_queue_remove_entries: failed to decode input data\n");
     return -EINVAL;
   }