if we have a wrong "created", OSD receiving an osd_pg_create message
could fail to project its history and crash. a bad split_bits could
mislead the monitor and osd, and hence cause problems.
* set child.info.history.epoch_created to osdmap.get_epoch() instead of
using the parent's epoch_created
* set child.info.stats.parent_split_bits to the calculated split_bits
instead using the parent's split_bits
Fixes: http://tracker.ceph.com/issues/15426
Signed-off-by: Kefu Chai <kchai@redhat.com>
as a work-around of https://bugs.python.org/issue8027, pass ${CC} and
${LDSHARED} to distutils, so we can still have a working compiling
command line even ${CC} is "ccache gcc".
Signed-off-by: Kefu Chai <kchai@redhat.com>
"755c685f2d"
change the lfn_parse_object_name() return type from bool to int but does not
change the relevant test correspondingly.
Fixes: http://tracker.ceph.com/issues/15464
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Maintenance ops that fail to notify a peer of the update should not
report a failure to the original user.
Fixes: http://tracker.ceph.com/issues/15351
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
It is only possible to remove image from rbd_mirroring object if the
mirroring image state is set to DISABLING.
Signed-off-by: Ricardo Dias <rdias@suse.com>
* pass the environment variables using `env` to pass environment
varibles with space(s) in them to the COMMAND in add_custom_target.
otherwise, cmake will try to quote the space with "\". this breaks the
generated command line.
* add a comment for ccache to note that we do not expect ccache to speed
up linking. we use it as the linker's launcher to workaround
https://bugs.python.org/issue8027. to be specific,
distutils.UnixCCompiler.link overwrites the first linker CLI's arg
using the the first C++ compiler's CLI arg, if "env" is not used to
launch the linker. this breaks the cythonization of our pybind APIs.
Signed-off-by: Kefu Chai <kchai@redhat.com>
'source' is not sh command and executing bash commands in sh won't
work. We could try to replace it with:
'. ../qa/workunits/ceph-helpers.sh'
but the above file uses bash.
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
Disabling exclusive lock will now acquire the exclusive lock before
proceeding. If this resulted in another client releasing the lock
and re-requesting it, support for exclusive locking might be disabled
while a request is pending.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
If object map or journaling is dynamically disabled, we want to
ensure that no in-flight IO could be updating the objects while
we attempt to delete them.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Need to clear any in-flight IO before the journal is closed to
avoid IO completions getting stuck in odd state.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>