diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-16 10:42:38 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-16 10:42:38 +0000 |
commit | 6b816198bd0d8a518465c8015e6dc9ee40399cd2 (patch) | |
tree | 17f93abf032e2ef2f4100131f3b1075db1a23a37 /storageapi | |
parent | 7e0c1731e36eb7048977ad14d6457182fb5ec4c1 (diff) |
Just use the stream method.
Diffstat (limited to 'storageapi')
-rw-r--r-- | storageapi/src/vespa/storageapi/message/persistence.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/storageapi/src/vespa/storageapi/message/persistence.cpp b/storageapi/src/vespa/storageapi/message/persistence.cpp index 2ab73236ca6..54df92546a5 100644 --- a/storageapi/src/vespa/storageapi/message/persistence.cpp +++ b/storageapi/src/vespa/storageapi/message/persistence.cpp @@ -58,7 +58,7 @@ PutCommand::getSummary() const void PutCommand::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "Put(" << getBucketId() << ", " << _doc->getId().toString() + out << "Put(" << getBucketId() << ", " << _doc->getId() << ", timestamp " << _timestamp << ", size " << _doc->serialize()->getLength() << ")"; if (verbose) { @@ -85,7 +85,7 @@ void PutReply::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "PutReply(" << _docId.toString() << ", " << getBucketId() << ", timestamp " << _timestamp; + out << "PutReply(" << _docId << ", " << getBucketId() << ", timestamp " << _timestamp; if (hasBeenRemapped()) { out << " (was remapped)"; @@ -132,7 +132,7 @@ UpdateCommand::getSummary() const { void UpdateCommand::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "Update(" << getBucketId() << ", " << _update->getId().toString() << ", timestamp " << _timestamp; + out << "Update(" << getBucketId() << ", " << _update->getId() << ", timestamp " << _timestamp; if (_oldTimestamp != 0) { out << ", old timestamp " << _oldTimestamp; } @@ -160,7 +160,7 @@ void UpdateReply::print(std::ostream& out, bool verbose, const std::string& indent) const { out << "UpdateReply(" - << _docId.toString() << ", " << getBucketId() << ", timestamp " + << _docId << ", " << getBucketId() << ", timestamp " << _timestamp << ", timestamp of updated doc: " << _oldTimestamp; if (_consistentNode != (uint16_t)-1) { @@ -200,7 +200,7 @@ GetCommand::getSummary() const void GetCommand::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "Get(" << getBucketId() << ", " << _docId.toString() << ")"; + out << "Get(" << getBucketId() << ", " << _docId << ")"; if (verbose) { out << " : "; BucketCommand::print(out, verbose, indent); @@ -226,7 +226,7 @@ GetReply::~GetReply() = default; void GetReply::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "GetReply(" << getBucketId() << ", " << _docId.toString() << ", timestamp " << _lastModifiedTime << ")"; + out << "GetReply(" << getBucketId() << ", " << _docId << ", timestamp " << _lastModifiedTime << ")"; if (verbose) { out << " : "; BucketReply::print(out, verbose, indent); @@ -253,7 +253,7 @@ RemoveCommand::getSummary() const { void RemoveCommand::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "Remove(" << getBucketId() << ", " << _docId.toString() << ", timestamp " << _timestamp << ")"; + out << "Remove(" << getBucketId() << ", " << _docId << ", timestamp " << _timestamp << ")"; if (verbose) { out << " : "; BucketInfoCommand::print(out, verbose, indent); @@ -273,7 +273,7 @@ RemoveReply::~RemoveReply() = default; void RemoveReply::print(std::ostream& out, bool verbose, const std::string& indent) const { - out << "RemoveReply(" << getBucketId() << ", " << _docId.toString() << ", timestamp " << _timestamp; + out << "RemoveReply(" << getBucketId() << ", " << _docId << ", timestamp " << _timestamp; if (_oldTimestamp != 0) { out << ", removed doc from " << _oldTimestamp; } else { |