This flag already exists in cls_lock but was not made externally
available via librados. Additionally, internally cls_lock refers to the
_RENEW flag as _MAY_RENEW, add an alias for librados to match.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
d3d683427d98b62d9b9974e455243bebe5119b53)
/* RADOS lock flags
* They are also defined in cls_lock_types.h. Keep them in sync!
*/
-#define LIBRADOS_LOCK_FLAG_RENEW 0x1
+#define LIBRADOS_LOCK_FLAG_RENEW (1u<<0)
+#define LIBRADOS_LOCK_FLAG_MAY_RENEW LIBRADOS_LOCK_FLAG_RENEW
+#define LIBRADOS_LOCK_FLAG_MUST_RENEW (1u<<1)
/*
* Constants for rados_write_op_create().