aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/storeonlyfeedview
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-03-06 12:30:42 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-03-06 12:30:42 +0000
commit35cb1029bebb96f0c1ef0411fa70798b2fec6e34 (patch)
treedf8907c9b995e1d5c19a0845ea22668b4681f35c /searchcore/src/tests/proton/documentdb/storeonlyfeedview
parent048a758bca5e4f68b1a4040239041ea5afd21f76 (diff)
Change document meta store api to require document size as argument to
put method. Adjust unit tests to supply (dummy) document size. Change feed view to supply document size.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/storeonlyfeedview')
-rw-r--r--searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
index eadc7566162..2c54188af3a 100644
--- a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp
@@ -159,10 +159,11 @@ struct Fixture {
typedef DocumentMetaStore::Result Result;
DocumentId id(make_string("groupdoc:test:foo:%d", expected_lid));
Result inspect = meta_store->inspect(id.getGlobalId());
+ uint32_t docSize = 1;
EXPECT_EQUAL(expected_lid,
meta_store->put(id.getGlobalId(),
id.getGlobalId().convertToBucketId(),
- Timestamp(10), inspect.getLid()).getLid());
+ Timestamp(10), docSize, inspect.getLid()).getLid());
}
void addDocsToMetaStore(int count) {
@@ -219,12 +220,13 @@ TEST_F("require that handleMove handles move within same subdb", Fixture)
{
Document::SP doc(new Document);
DocumentId doc1id("groupdoc:test:foo:1");
+ uint32_t docSize = 1;
f.runInMaster([&] () { f.meta_store->put(doc1id.getGlobalId(),
doc1id.getGlobalId().convertToBucketId(),
- Timestamp(9), 1); });
+ Timestamp(9), docSize, 1); });
f.runInMaster([&] () { f.meta_store->put(doc->getId().getGlobalId(),
doc->getId().getGlobalId().convertToBucketId(),
- Timestamp(10), 2); });
+ Timestamp(10), docSize, 2); });
f.runInMaster([&] () { f.meta_store->remove(1); });
f.meta_store->removeComplete(1);
MoveOperation op(doc->getId().getGlobalId().convertToBucketId(),