]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/image/ValidatePoolRequest.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / librbd / image / ValidatePoolRequest.cc
index 2214f81b0a09bb95dd5819db94821a66381ffa8d..9e4af7bf9904d76d20c50f24f54289ee98e83949 100644 (file)
@@ -97,7 +97,7 @@ void ValidatePoolRequest<I>::create_snapshot() {
 
   // allocate a self-managed snapshot id if this a new pool to force
   // self-managed snapshot mode
-  auto ctx = new FunctionContext([this](int r) {
+  auto ctx = new LambdaContext([this](int r) {
       r = m_io_ctx.selfmanaged_snap_create(&m_snap_id);
       handle_create_snapshot(r);
     });
@@ -161,7 +161,7 @@ template <typename I>
 void ValidatePoolRequest<I>::remove_snapshot() {
   ldout(m_cct, 5) << dendl;
 
-  auto ctx = new FunctionContext([this](int r) {
+  auto ctx = new LambdaContext([this](int r) {
       r = m_io_ctx.selfmanaged_snap_remove(m_snap_id);
       handle_remove_snapshot(r);
     });