From e4aea9b66d5d0630df60c219dd04e6dd14daafc6 Mon Sep 17 00:00:00 2001 From: Jingyu Zhou Date: Tue, 12 Nov 2019 16:44:59 -0800 Subject: [PATCH] Use VectorRef for VersionedMessage --- fdbserver/BackupWorker.actor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdbserver/BackupWorker.actor.cpp b/fdbserver/BackupWorker.actor.cpp index 4cb8f05979..c1b7fb4895 100644 --- a/fdbserver/BackupWorker.actor.cpp +++ b/fdbserver/BackupWorker.actor.cpp @@ -32,10 +32,10 @@ struct VersionedMessage { LogMessageVersion version; StringRef message; - std::vector tags; + VectorRef tags; Arena arena; // Keep a reference to the memory containing the message - VersionedMessage(LogMessageVersion v, StringRef m, const std::vector& t, const Arena& a) + VersionedMessage(LogMessageVersion v, StringRef m, const VectorRef& t, const Arena& a) : version(v), message(m), tags(t), arena(a) {} const Version getVersion() const { return version.version; } const uint32_t getSubVersion() const { return version.sub; } @@ -159,7 +159,7 @@ bool isBackupMessage(const VersionedMessage& msg) { } // Saves messages in the range of [0, numMsg) to a file and then remove these -// messages. +// messages. The file format is a sequence of (Version, sub#, msgSize, message), ACTOR Future saveMutationsToFile(BackupData* self, Version popVersion, int numMsg) { const int blockSize = 1 << 20; state Reference logFile =