Skip to content

Commit e45fdf4

Browse files
committed
Removed evicted state from getledgerentry
1 parent cce6dcb commit e45fdf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/QueryServer.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ QueryServer::getLedgerEntryRaw(std::string const& params,
215215
}
216216

217217
// This query needs to load all the given ledger entries and their "state"
218-
// (live, archived, evicted, new). This requires a loading entry and TTL from
218+
// (live, archived, new). This requires loading an entry and TTL from
219219
// the live BucketList and then checking the Hot Archive for any keys we didn't
220220
// find. We do three passes:
221221
// 1. Load all keys from the live BucketList
@@ -285,6 +285,7 @@ QueryServer::getLedgerEntry(std::string const& params, std::string const& body,
285285
}
286286

287287
liveEntries = std::move(*liveEntriesOp);
288+
liveEntriesOp->clear();
288289

289290
// Remove keys found in live bucketList
290291
for (auto const& le : liveEntries)
@@ -388,7 +389,7 @@ QueryServer::getLedgerEntry(std::string const& params, std::string const& body,
388389

389390
Json::Value entry;
390391
entry["e"] = toOpaqueBase64(le);
391-
entry["state"] = "evicted";
392+
entry["state"] = "archived";
392393
root["entries"].append(entry);
393394
}
394395

src/main/test/QueryServerTests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ TEST_CASE("getledgerentry", "[queryserver]")
154154
}
155155
else
156156
{
157-
expectedState = "evicted";
157+
expectedState = "archived";
158158
}
159159
}
160160

0 commit comments

Comments
 (0)