mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
modules/console: Workaround https://github.com/facebook/rocksdb/issues/4878
This commit is contained in:
parent
ba5701acca
commit
6a0b384d8f
1 changed files with 16 additions and 8 deletions
|
@ -3528,12 +3528,16 @@ try
|
|||
(const string_view &prop)
|
||||
{
|
||||
const auto name(lstrip(prop, "rocksdb."));
|
||||
const auto val
|
||||
size_t val(0); try
|
||||
{
|
||||
c?
|
||||
val = c?
|
||||
db::property<db::prop_int>(c, prop):
|
||||
db::property<db::prop_int>(d, prop)
|
||||
};
|
||||
db::property<db::prop_int>(d, prop);
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror{"%s", e.what()};
|
||||
}
|
||||
|
||||
if(!!val) closeout(name, [&out, &val]
|
||||
{
|
||||
|
@ -3545,12 +3549,16 @@ try
|
|||
(const string_view &prop)
|
||||
{
|
||||
const auto name(lstrip(prop, "rocksdb."));
|
||||
const auto val
|
||||
size_t val(0); try
|
||||
{
|
||||
c?
|
||||
val = c?
|
||||
db::property<db::prop_int>(c, prop):
|
||||
db::property<db::prop_int>(d, prop)
|
||||
};
|
||||
db::property<db::prop_int>(d, prop);
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::derror{"%s", e.what()};
|
||||
}
|
||||
|
||||
if(!!val) closeout(name, [&out, &val]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue