diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2017-10-17 01:19:04 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2017-10-17 12:02:29 +0000 |
commit | a110f409b9d56fc7542b110cd50956e3fefdb806 (patch) | |
tree | 567d9ad6afdb65c5ffe40dccb55cc1cedab06226 /storage/src/tests/distributor/removeoperationtest.cpp | |
parent | dde45a05b010b6de1c62643cd9ecd37c091fdba9 (diff) |
Take document::Bucket instead of document::BucketId as constructor
argument to storage commands that inherit from BucketCommand.
Diffstat (limited to 'storage/src/tests/distributor/removeoperationtest.cpp')
-rw-r--r-- | storage/src/tests/distributor/removeoperationtest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/src/tests/distributor/removeoperationtest.cpp b/storage/src/tests/distributor/removeoperationtest.cpp index ae4feb0d03a..013d62bac14 100644 --- a/storage/src/tests/distributor/removeoperationtest.cpp +++ b/storage/src/tests/distributor/removeoperationtest.cpp @@ -6,8 +6,11 @@ #include <vespa/storage/distributor/distributor.h> #include <vespa/storageapi/message/persistence.h> #include <tests/distributor/distributortestutil.h> +#include <tests/common/make_document_bucket.h> #include <vespa/storage/distributor/operations/external/removeoperation.h> +using storage::test::makeDocumentBucket; + namespace storage { namespace distributor { @@ -52,7 +55,7 @@ public: void sendRemove(document::DocumentId dId) { std::shared_ptr<api::RemoveCommand> msg( - new api::RemoveCommand(document::BucketId(0), dId, 100)); + new api::RemoveCommand(makeDocumentBucket(document::BucketId(0)), dId, 100)); op.reset(new RemoveOperation(getExternalOperationHandler(), msg, |