]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: Translate operation flags from C APIs 3324/head
authorMatt Richards <mattjrichards@gmail.com>
Thu, 8 Jan 2015 21:16:17 +0000 (13:16 -0800)
committerMatt Richards <mattjrichards@gmail.com>
Thu, 8 Jan 2015 21:16:17 +0000 (13:16 -0800)
commit49d114f1fff90e5c0f206725a5eb82c0ba329376
tree428334632c53ec61c21ba7cb72d0c6f4eeb72fe9
parent1e444e91038b034c6accb27f781163941183666d
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>
src/librados/librados.cc