the isal-zlib compressor plugin is not supported on non-intel archs, and
if the user does not have a capable yasm compiler, neither will he/she
get this plugin.
Signed-off-by: Kefu Chai <kchai@redhat.com>
To enable places that already have an objecter
(such as ceph-mgr) to avoid spinning up another
one inside Client.
This will also be a path to re-using the librados
objecter in multiple instances of libcephfs in the
same process, a la nfs-ganesha.
Signed-off-by: John Spray <john.spray@redhat.com>
The following error appears during make:
ceph/src/dmclock/test/test_test_client.cc:14:0:
ceph/src/dmclock/test/../sim/src/sim_recs.h:40:12: error: ‘std::function’ has not been declared
std::function<void()> code) {
Signed-off-by: Jos Collin <jcollin@redhat.com>
dmclock: error: ‘function’ in namespace ‘std’ does not name a template type
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
The CephContext pointer is passed around inside
a Python capsule. It would have initially been
created by some other (non-cython) bit of C++
code, such as ceph-mgr.
This enables mgr modules to instantiate librados
with all the same config/auth/id as the mgr daemon
that they are running within. Useful if you
want to spin up e.g. a librbd instance.
Signed-off-by: John Spray <john.spray@redhat.com>
For modules that would like a CephContext* inside
a capsule, suitable for passing to librados constructor.
Signed-off-by: John Spray <john.spray@redhat.com>
If the pg didn't previously exist we don't need to (and can't) prime
pg_temp for it. This avoids crashing on mapping.get().
Signed-off-by: Sage Weil <sage@redhat.com>
1- in reality we don't really care if pg_temp is set.
2- compare against acting_primary since that's what actually matters.
Signed-off-by: Sage Weil <sage@redhat.com>
The following error appears during make:
In file included from ceph/src/dmclock/support/src/run_every.cc:10:0:
ceph/src/dmclock/support/src/run_every.h:30:10: error: ‘function’ in namespace ‘std’ does not name a template type
std::function<void()> body;
^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:12: error: ‘std::function’ has not been declared
std::function<void()> _body) :
^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:20: error: expected ‘,’ or ‘...’ before ‘<’ token
std::function<void()> _body) :
^
ceph/src/dmclock/support/src/run_every.h: In constructor ‘crimson::RunEvery::RunEvery(D, int)’:
ceph/src/dmclock/support/src/run_every.h:48:7: error: class ‘crimson::RunEvery’ does not have any field named ‘body’
body(_body)
^~~~
ceph/src/dmclock/support/src/run_every.h:48:12: error: ‘_body’ was not declared in this scope
body(_body)
^~~~~
ceph/src/dmclock/support/src/run_every.cc: In member function ‘void crimson::RunEvery::run()’:
ceph/src/dmclock/support/src/run_every.cc:70:7: error: ‘body’ was not declared in this scope
body();
^~~~
ceph/src/dmclock/support/src/run_every.cc:70:7: note: suggested alternative: ‘bool’
body();
^~~~
bool
Signed-off-by: Jos Collin <jcollin@redhat.com>