mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove spurious call to fetch in NuDBBackend
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user