summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/persistence/persistencetestutils.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-10-20 12:21:17 +0000
committerTor Egge <Tor.Egge@oath.com>2017-10-20 12:21:17 +0000
commit243b342cb14539cf3c9a2fd520084e7164e49dcd (patch)
tree545596c662c23d9043ecb125a8e1e14a44a29495 /storage/src/tests/persistence/persistencetestutils.cpp
parent5fd803fe826569265db2f76d327610ac829ed7ea (diff)
Rename storage::spi::test::makeBucket to storage::spi::test::makeSpiBucket.
Diffstat (limited to 'storage/src/tests/persistence/persistencetestutils.cpp')
-rw-r--r--storage/src/tests/persistence/persistencetestutils.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/storage/src/tests/persistence/persistencetestutils.cpp b/storage/src/tests/persistence/persistencetestutils.cpp
index 480f236997a..c17c4837bfa 100644
--- a/storage/src/tests/persistence/persistencetestutils.cpp
+++ b/storage/src/tests/persistence/persistencetestutils.cpp
@@ -12,7 +12,7 @@
using document::DocumentType;
using storage::framework::defaultimplementation::AllocationLogic;
-using storage::spi::test::makeBucket;
+using storage::spi::test::makeSpiBucket;
using document::test::makeDocumentBucket;
namespace storage {
@@ -82,7 +82,7 @@ PersistenceTestUtils::~PersistenceTestUtils()
std::string
PersistenceTestUtils::dumpBucket(const document::BucketId& bid,
uint16_t disk) {
- return dynamic_cast<spi::dummy::DummyPersistence&>(_env->_node.getPersistenceProvider()).dumpBucket(makeBucket(bid, spi::PartitionId(disk)));
+ return dynamic_cast<spi::dummy::DummyPersistence&>(_env->_node.getPersistenceProvider()).dumpBucket(makeSpiBucket(bid, spi::PartitionId(disk)));
}
void
@@ -169,7 +169,7 @@ PersistenceTestUtils::doPutOnDisk(
{
document::Document::SP doc(createRandomDocumentAtLocation(
location, timestamp, minSize, maxSize));
- spi::Bucket b(makeBucket(document::BucketId(16, location), spi::PartitionId(disk)));
+ spi::Bucket b(makeSpiBucket(document::BucketId(16, location), spi::PartitionId(disk)));
spi::Context context(defaultLoadType, spi::Priority(0),
spi::Trace::TraceLevel(0));
@@ -193,12 +193,12 @@ PersistenceTestUtils::doRemoveOnDisk(
spi::Trace::TraceLevel(0));
if (persistRemove) {
spi::RemoveResult result = getPersistenceProvider().removeIfFound(
- makeBucket(bucketId, spi::PartitionId(disk)),
+ makeSpiBucket(bucketId, spi::PartitionId(disk)),
timestamp, docId, context);
return result.wasFound();
}
spi::RemoveResult result = getPersistenceProvider().remove(
- makeBucket(bucketId, spi::PartitionId(disk)),
+ makeSpiBucket(bucketId, spi::PartitionId(disk)),
timestamp, docId, context);
return result.wasFound();
@@ -214,7 +214,7 @@ PersistenceTestUtils::doUnrevertableRemoveOnDisk(
spi::Context context(defaultLoadType, spi::Priority(0),
spi::Trace::TraceLevel(0));
spi::RemoveResult result = getPersistenceProvider().remove(
- makeBucket(bucketId, spi::PartitionId(disk)),
+ makeSpiBucket(bucketId, spi::PartitionId(disk)),
timestamp, docId, context);
return result.wasFound();
}
@@ -232,7 +232,7 @@ PersistenceTestUtils::doGetOnDisk(
if (headerOnly) {
fieldSet.reset(new document::HeaderFields());
}
- return getPersistenceProvider().get(makeBucket(
+ return getPersistenceProvider().get(makeSpiBucket(
bucketId, spi::PartitionId(disk)), *fieldSet, docId, context);
}
@@ -308,7 +308,7 @@ PersistenceTestUtils::doPut(const document::Document::SP& doc,
spi::Timestamp time,
uint16_t disk)
{
- spi::Bucket b(makeBucket(bid, spi::PartitionId(disk)));
+ spi::Bucket b(makeSpiBucket(bid, spi::PartitionId(disk)));
spi::Context context(defaultLoadType, spi::Priority(0),
spi::Trace::TraceLevel(0));
getPersistenceProvider().createBucket(b, context);
@@ -324,7 +324,7 @@ PersistenceTestUtils::doUpdate(document::BucketId bid,
spi::Context context(defaultLoadType, spi::Priority(0),
spi::Trace::TraceLevel(0));
return getPersistenceProvider().update(
- makeBucket(bid, spi::PartitionId(disk)), time, update, context);
+ makeSpiBucket(bid, spi::PartitionId(disk)), time, update, context);
}
void
@@ -340,10 +340,10 @@ PersistenceTestUtils::doRemove(const document::DocumentId& id, spi::Timestamp ti
spi::Trace::TraceLevel(0));
if (unrevertableRemove) {
getPersistenceProvider().remove(
- makeBucket(bucket, spi::PartitionId(disk)), time, id, context);
+ makeSpiBucket(bucket, spi::PartitionId(disk)), time, id, context);
} else {
spi::RemoveResult result = getPersistenceProvider().removeIfFound(
- makeBucket(bucket, spi::PartitionId(disk)), time, id, context);
+ makeSpiBucket(bucket, spi::PartitionId(disk)), time, id, context);
if (!result.wasFound()) {
throw vespalib::IllegalStateException(
"Attempted to remove non-existing doc " + id.toString(),