From: Josh Durgin Date: Mon, 30 Mar 2015 22:29:17 +0000 (-0700) Subject: librados: define C++ global flags from the C constants X-Git-Tag: v9.0.0~52^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=febb5a47f08cd181f4874c51be5204f84629fa57;p=ceph.git librados: define C++ global flags from the C constants This will help prevent drift in the future. It also makes it clear that the flags are supposed to have the same values. Signed-off-by: Josh Durgin --- diff --git a/src/include/rados/librados.hpp b/src/include/rados/librados.hpp index 74e970eaa6be..6a0253d2e42a 100644 --- a/src/include/rados/librados.hpp +++ b/src/include/rados/librados.hpp @@ -252,13 +252,13 @@ namespace librados * for CACHE_FLUSH and CACHE_EVICT operations. */ enum ObjectOperationGlobalFlags { - OPERATION_NOFLAG = 0, - OPERATION_BALANCE_READS = 1, - OPERATION_LOCALIZE_READS = 2, - OPERATION_ORDER_READS_WRITES = 4, - OPERATION_IGNORE_CACHE = 8, - OPERATION_SKIPRWLOCKS = 16, - OPERATION_IGNORE_OVERLAY = 32, + OPERATION_NOFLAG = LIBRADOS_OPERATION_NOFLAG, + OPERATION_BALANCE_READS = LIBRADOS_OPERATION_BALANCE_READS, + OPERATION_LOCALIZE_READS = LIBRADOS_OPERATION_LOCALIZE_READS, + OPERATION_ORDER_READS_WRITES = LIBRADOS_OPERATION_ORDER_READS_WRITES, + OPERATION_IGNORE_CACHE = LIBRADOS_OPERATION_IGNORE_CACHE, + OPERATION_SKIPRWLOCKS = LIBRADOS_OPERATION_SKIPRWLOCKS, + OPERATION_IGNORE_OVERLAY = LIBRADOS_OPERATION_IGNORE_OVERLAY, }; /*