| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
We need to use random content to estimate DB size.
Otherwise, compression will cause DB to be unreasonably small.
Fixes: https://tracker.ceph.com/issues/63121
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
|
|
|
|
| |
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whereas new LevelDB packages are build with -fno-rtti and break our
attempts to compile against them,
and whereas LevelDB has been deprecated for some time, with the Ceph
team expending great effort to migrating OSDs off of it,
let it be therefore removed.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
|
| |
A followup to PR #42820 that modified argv_to_vec() signature
(for style and performance).
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
* add "std::" prefix in headers
* add "using" declarations in .cc files.
so we don't rely on "using namespace std" in one or more included
headers.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
| |
for better readability
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
| |
Added possibility to control batch size and iterator refresh time for resharding process.
Replaced getenv() with new control for resharding unittests.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
|
|
|
| |
Added WholeSpaceIterator that properly assembles sharded and unsharded
portions of RocksDB database into one consistent iterator.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
|
|
| |
Modified recommendation for column families.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
|
|
|
| |
Column families (defined by prefix) can now be split into multiple shards.
Each shard is a separate column family.
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
| |
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
|
|
|
|
| |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
value-parameterized is supported on all platforms, so drop this check
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
| |
the former is deprecated
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
| |
This avoids a c_str() on a temporary string later down the line, which
avoids a use-after-free.
Fixes: http://tracker.ceph.com/issues/26875
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
by moving ConfigValues out of md_config_t, we are able to point
md_config_t to a new ConfigValues instance at runtime, without
destroying the old one.
also remove ConfigReader, because all md_config_obs_t will be updated
with ConfigProxy now. as md_config_t is not able to offer the *data*
anymore.
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Usually we use NO_DEFAULT_CONFIG_FILE, but for those tests that need the
plugin directory overrides in order to work properly when run manually
(e.g., "bin/unittest_compression"), read the config and only skip the
mon config.
The NO_DFEAULT_CONFIG_FILE (which also skips the mon) would work for
everything when run via ctest, but as a dev one often runs the unittest
manually and having to pass CEPH_LIB=lib is annoying. Note that
do_cmake.sh already writes out a trivial ceph.conf with these options
set for us.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
global[_pre]_init does this for us now.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
|
|
| |
- detect and use existing CFs on open
Signed-off-by: Jianjian Huo <jianjian.huo@ssi.samsung.com>
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Haomai Wang <haomai@xsky.com>
|
|
|
|
|
|
| |
Fixes: http://tracker.ceph.com/issues/18922
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
|
|
|
|
|
|
|
|
| |
In preparation to deglobalizing CephContext, remove the CephContext*
parameter to ceph_clock_now() and ceph::real_clock::now() that carries
a configurable offset.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
prior to this change, global_init() could create a new CephContext
and assign it to g_ceph_context. it's our responsibilty to release
the CephContext explicitly using cct->put() before the application
quits. but sometimes, we fail to do so.
in this change, global_init() will return an intrusive_ptr<CephContext>,
which calls `g_ceph_context->put()` in its dtor. this ensures that
the CephContext is always destroyed before main() returns. so the
log is flushed before _log_exp_length is destroyed.
there are two cases where global_pre_init() is called directly.
- ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<>
deleter.
- rgw_main.cc: global_init() is called later on on the success code
path, so it will be taken care of.
Fixes: http://tracker.ceph.com/issues/17762
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
|
| |
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
|
|
|
|
| |
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
|
|
|
|
|
| |
Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
|
| |
Just like ceph_test_objectstore
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
|
| |
Fixes: http://tracker.ceph.com/issues/15435
Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
|
|
|
|
|
|
|
| |
Better code organization, and it will allow us to link less code into
the mon.
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
|
|
| |
Signed-off-by: Sage Weil <sage@redhat.com>
|
|
Signed-off-by: Sage Weil <sage@redhat.com>
|