From 9e117b7b384b541ba083fed5a9b390d8d965e82b Mon Sep 17 00:00:00 2001 From: Miguel Portilla Date: Tue, 30 Jul 2019 13:59:39 -0400 Subject: [PATCH] Fix shard path detection --- src/ripple/nodestore/impl/Shard.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ripple/nodestore/impl/Shard.cpp b/src/ripple/nodestore/impl/Shard.cpp index 53e0850388..f9e6b662e1 100644 --- a/src/ripple/nodestore/impl/Shard.cpp +++ b/src/ripple/nodestore/impl/Shard.cpp @@ -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())