]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: Translate operation flags from C APIs 4097/head
authorMatt Richards <mattjrichards@gmail.com>
Thu, 8 Jan 2015 21:16:17 +0000 (13:16 -0800)
committerLoic Dachary <ldachary@redhat.com>
Thu, 19 Mar 2015 09:50:23 +0000 (10:50 +0100)
commitfc43d8c2c54ec9e9cb6ef4d19cca695eb2fb3aab
tree0f10d56b1251bb4a7b99bf32b295d296f4efab9a
parent1f58a0adc3b23785fac00083d721b62f6a4c44a1
librados: Translate operation flags from C APIs

The operation flags in the public C API are a distinct enum
and need to be translated to Ceph OSD flags, like as happens in
the C++ API. It seems like the C enum and the C++ enum consciously
use the same values, so I reused the C++ translation function.

Signed-off-by: Matthew Richards <mattjrichards@gmail.com>
(cherry picked from commit 49d114f1fff90e5c0f206725a5eb82c0ba329376)
src/librados/librados.cc