]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: Translate operation flags from C APIs 3930/head
authorMatt Richards <mattjrichards@gmail.com>
Thu, 8 Jan 2015 21:16:17 +0000 (13:16 -0800)
committerLoic Dachary <ldachary@redhat.com>
Tue, 10 Mar 2015 22:29:50 +0000 (23:29 +0100)
commita22aa8f3228e0baf2ba08d9e79ee4924cd341a07
treea6d3d22ee5a9e36aaab35a4739ca48265d070b07
parentb5a67f0e1d15385bc0d60a6da6e7fc810bde6047
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)

Conflicts:
src/librados/librados.cc
        comes from lttng tracepoints introduced after firefly
src/librados/librados.cc