mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
Fix shard path detection
This commit is contained in:
committed by
Nik Bougalis
parent
a02d914093
commit
9e117b7b38
@@ -65,12 +65,11 @@ Shard::open(Section config, Scheduler& scheduler, nudb::context& ctx)
|
||||
return false;
|
||||
}
|
||||
|
||||
auto const preexist {exists(dir_)};
|
||||
|
||||
config.set("path", dir_.string());
|
||||
backend_ = factory->createInstance(
|
||||
NodeObject::keyBytes, config, scheduler, ctx, j_);
|
||||
|
||||
auto const preexist {exists(dir_)};
|
||||
auto fail = [&](std::string msg)
|
||||
{
|
||||
if (!msg.empty())
|
||||
|
||||
Reference in New Issue
Block a user