]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
objclass: fix cls_cxx_map_remove_key()
authorYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Sat, 14 Apr 2012 06:16:42 +0000 (23:16 -0700)
committerYehuda Sadeh <yehuda.sadeh@dreamhost.com>
Sat, 14 Apr 2012 06:53:08 +0000 (23:53 -0700)
didn't set the correct osd op, didn't do anything.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
src/objclass/class_api.cc

index 59ddfd7d9597df8cc3cd35758b9bb384be879a5c..0b0527a19b88d838936b8af0152bc933eae8e8f7 100644 (file)
@@ -399,6 +399,9 @@ int cls_cxx_map_remove_key(cls_method_context_t hctx, string key)
   to_rm.insert(key);
 
   ::encode(to_rm, update_bl);
+
+  op.op.op = CEPH_OSD_OP_OMAPRMKEYS;
+
   return (*pctx)->pg->do_osd_ops(*pctx, ops);
 }