summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/feedview
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-11-19 12:53:49 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-11-19 16:39:21 +0100
commit67f83ab6dbf0912cf53885b65991aa63d5a41fcc (patch)
tree3cd9dbe568d77e7ded3d1f3b0f9146320efd0d1b /searchcore/src/tests/proton/documentdb/feedview
parent19e2e6fcc911a17041771784f2dfa27b002bb27b (diff)
Delay gid to lid change notifications for put operations.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/feedview')
-rw-r--r--searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp b/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp
index b875ab8e058..2b2b8acbc50 100644
--- a/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/feedview/feedview_test.cpp
@@ -179,23 +179,20 @@ public:
{
}
- void notifyPutDone(IDestructorCallbackSP, document::GlobalId gid, uint32_t lid, SerialNum) override {
+ void notifyPut(IDestructorCallbackSP, document::GlobalId gid, uint32_t lid, SerialNum) override {
_changeGid = gid;
_changeLid = lid;
_gidToLid[gid] = lid;
++_changes;
}
- void notifyRemove(IDestructorCallbackSP, document::GlobalId gid, SerialNum) override {
+ void notifyRemove(IDestructorCallbackSP, document::GlobalId gid, SerialNum) override {
_changeGid = gid;
_changeLid = 0;
_gidToLid[gid] = 0;
++_changes;
}
- void notifyRemoveDone(document::GlobalId, SerialNum) override {
- }
-
void assertChanges(document::GlobalId expGid, uint32_t expLid, uint32_t expChanges) {
EXPECT_EQUAL(expGid, _changeGid);
EXPECT_EQUAL(expLid, _changeLid);