tools: fix tabletool reset of nonexistent sessionmap

If the object didn't exist, the omap clear was failing
and preventing the subsueent omap set header from
executing.  Set the FAILOK flag on the omap clear
sub-operation.

Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2015-05-11 12:53:52 +01:00
parent a4925933d3
commit 676014580d

View File

@ -353,6 +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.omap_set_header(header_bl);
return io->operate(object_name, &op);