]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/tools/rbd/action/Kernel.cc
update sources to v12.2.3
[ceph.git] / ceph / src / tools / rbd / action / Kernel.cc
index 4f58cc27d83c87dabc7219a8529a782f96dbc3a5..55aca7f16f922401cdda5c4df0e3a61d0e179555 100644 (file)
@@ -303,7 +303,7 @@ static int do_kernel_map(const char *poolname, const char *imgname,
     // default and omit it even if it was specified by the user
     // (see ceph.git commit fb0f1986449b)
     if (it->first == "rw" && it->second == "rw") {
-      map_options.erase(it);
+      it = map_options.erase(it);
     } else {
       if (it != map_options.begin())
         oss << ",";