summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-11-21 13:58:31 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-11-22 00:27:05 +0000
commit84b04793f98cd6af2a7ca48e344bb48bbcf79727 (patch)
treeef0d4f3ee2d43eefe03e07f666ca5693a2123716 /storageapi
parentefd711cc8836a4748fc7a8184d51c0371cd98774 (diff)
Avoid creating many instances of rather large methods.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/vespa/storageapi/messageapi/storagemessage.cpp5
-rw-r--r--storageapi/src/vespa/storageapi/messageapi/storagemessage.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/storageapi/src/vespa/storageapi/messageapi/storagemessage.cpp b/storageapi/src/vespa/storageapi/messageapi/storagemessage.cpp
index 72fcfb66578..c084106a3ab 100644
--- a/storageapi/src/vespa/storageapi/messageapi/storagemessage.cpp
+++ b/storageapi/src/vespa/storageapi/messageapi/storagemessage.cpp
@@ -332,5 +332,10 @@ void StorageMessage::setNewMsgId()
_lastMsgId &= ((Id(-1) << 8) >> 8);
}
+vespalib::string
+StorageMessage::getSummary() const {
+ return toString();
+}
+
} // api
} // storage
diff --git a/storageapi/src/vespa/storageapi/messageapi/storagemessage.h b/storageapi/src/vespa/storageapi/messageapi/storagemessage.h
index b07c75cca8b..4b16b78a796 100644
--- a/storageapi/src/vespa/storageapi/messageapi/storagemessage.h
+++ b/storageapi/src/vespa/storageapi/messageapi/storagemessage.h
@@ -447,7 +447,7 @@ public:
/**
* Cheap version of tostring().
*/
- virtual vespalib::string getSummary() const { return toString(); };
+ virtual vespalib::string getSummary() const;
virtual document::BucketId getBucketId() const { return document::BucketId(); }
virtual bool hasSingleBucketId() const { return false; }