diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-16 22:04:49 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-16 22:04:49 +0000 |
commit | f1e4ba5a7ee384f93c2687e640340a7892291ed5 (patch) | |
tree | 00038ddbe3cc4b64b4d6150c559813b5fad02676 /storage | |
parent | 3cc27ac65a5a6601f1405e67ab99c60cb63aa00c (diff) |
We only the docid for remove and stat.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/persistence/processallhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/persistence/processallhandler.cpp b/storage/src/vespa/storage/persistence/processallhandler.cpp index 9308ae2a807..04afdc9eb85 100644 --- a/storage/src/vespa/storage/persistence/processallhandler.cpp +++ b/storage/src/vespa/storage/persistence/processallhandler.cpp @@ -86,7 +86,7 @@ ProcessAllHandler::handleRemoveLocation(api::RemoveLocationCommand& cmd, Message spi::Bucket bucket(cmd.getBucket()); UnrevertableRemoveEntryProcessor processor(_spi, bucket, tracker->context()); BucketProcessor::iterateAll(_spi, bucket, cmd.getDocumentSelection(), - std::make_shared<document::AllFields>(), + std::make_shared<document::DocIdOnly>(), processor, spi::NEWEST_DOCUMENT_ONLY,tracker->context()); tracker->setReply(std::make_shared<api::RemoveLocationReply>(cmd, processor._n_removed)); @@ -104,7 +104,7 @@ ProcessAllHandler::handleStatBucket(api::StatBucketCommand& cmd, MessageTracker: spi::Bucket bucket(cmd.getBucket()); StatEntryProcessor processor(ost); BucketProcessor::iterateAll(_spi, bucket, cmd.getDocumentSelection(), - std::make_shared<document::AllFields>(), + std::make_shared<document::DocIdOnly>(), processor, spi::ALL_VERSIONS,tracker->context()); tracker->setReply(std::make_shared<api::StatBucketReply>(cmd, ost.str())); |