From f4dcbe3a84b76edb2b43fcf799a3b9ce05cdb4a6 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 3 Feb 2015 08:51:37 -0800 Subject: [PATCH] Remove spurious call to fetch in NuDBBackend --- src/ripple/nodestore/backend/NuDBFactory.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ripple/nodestore/backend/NuDBFactory.cpp b/src/ripple/nodestore/backend/NuDBFactory.cpp index 87c28fdfe..d653697fe 100644 --- a/src/ripple/nodestore/backend/NuDBFactory.cpp +++ b/src/ripple/nodestore/backend/NuDBFactory.cpp @@ -190,6 +190,11 @@ public: }; //-------------------------------------------------------------------------- + // + // Version 1 Database + // + // Uncompressed + // Status fetch1 (void const* key, @@ -221,6 +226,11 @@ public: } //-------------------------------------------------------------------------- + // + // Version 2 Database + // + // Snappy compression + // Status fetch2 (void const* key, @@ -270,10 +280,6 @@ public: Status fetch (void const* key, NodeObject::Ptr* pno) { - Buffer b1; - if (! db_.fetch (key, b1)) - return notFound; - switch (db_.appnum()) { case typeOne: return fetch1 (key, pno);