]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: fix deprecated warning
authorKefu Chai <kchai@redhat.com>
Wed, 1 Jul 2015 08:37:36 +0000 (16:37 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jul 2015 09:12:58 +0000 (17:12 +0800)
s/set_op_flags/set_op_flags2/

Fixes: #12120
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/cephfs/TableTool.cc

index b54256f3dea6434996be7197d961cf41d46196f9..99a0856d7f820dc220804e77d853abbdd13012e0 100644 (file)
@@ -353,7 +353,7 @@ public:
     // Compose a transaction to clear and write header
     librados::ObjectWriteOperation op;
     op.omap_clear();
-    op.set_op_flags(librados::OP_FAILOK);
+    op.set_op_flags2(LIBRADOS_OP_FLAG_FAILOK);
     op.omap_set_header(header_bl);
     
     return io->operate(object_name, &op);