summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-30 23:08:27 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-31 13:49:27 +0200
commitf6cc918be775094726aa3c241ab4340e8363342f (patch)
tree5b3719b0dfa3780027540d0eeea657f4f7d7f10a /storageapi
parent343ece39072d3132885922b132dc57dcbebe3881 (diff)
Hide implementation details.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_0.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_0.cpp b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_0.cpp
index 3ae121a7e03..a1be0def20b 100644
--- a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_0.cpp
+++ b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_0.cpp
@@ -229,8 +229,7 @@ ProtocolSerialization5_0::onDecodeUpdateCommand(BBuf& buf) const
if (size != 0) {
document::ByteBuffer bbuf(buf.getBufferAtPos(), size);
buf.incPos(size);
- update = std::make_shared<document::DocumentUpdate>(getTypeRepo(), bbuf,
- document::DocumentUpdate::SerializeVersion::SERIALIZE_HEAD);
+ update = document::DocumentUpdate::createHEAD(getTypeRepo(), bbuf);
}
document::Bucket bucket = getBucket(buf);