summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-05-18 14:32:39 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-05-18 14:32:39 +0000
commit58e9cceaf622c953ee19c4dd3e899ac4457699f3 (patch)
tree8fd119b61a15a600b269e58964d0f45d572c2fef /searchcore
parente098893cb83228997b4ebe71a734e3a916cdb92e (diff)
Shrink lid space on attribute vectors and document meta store when
tls replay is done.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp1
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
index 56c941bc12d..fa0d6cbd0a5 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
@@ -119,6 +119,7 @@ applyReplayDone(uint32_t docIdLimit, AttributeVector &attr)
{
AttributeManager::padAttribute(attr, docIdLimit);
attr.compactLidSpace(docIdLimit);
+ attr.shrinkLidSpace();
}
diff --git a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
index 2649fac23c1..e9301be61af 100644
--- a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
@@ -176,7 +176,8 @@ StoreOnlyDocSubDB::hasDocument(const document::DocumentId &id)
void
StoreOnlyDocSubDB::onReplayDone()
{
- _metaStoreCtx->get().constructFreeList();
+ _dms->constructFreeList();
+ _dms->shrinkLidSpace();
}