]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: define C++ global flags from the C constants 4220/head
authorJosh Durgin <jdurgin@redhat.com>
Mon, 30 Mar 2015 22:29:17 +0000 (15:29 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 30 Mar 2015 22:29:24 +0000 (15:29 -0700)
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 <jdurgin@redhat.com>
src/include/rados/librados.hpp

index 74e970eaa6be314a949036347f7fdbfdc5a417ee..6a0253d2e42aefce120d68589ddec7121b255dcf 100644 (file)
@@ -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,
   };
 
   /*