diff --git a/fdbclient/TransactionLineage.h b/fdbclient/TransactionLineage.h index b4518de231..711d89101c 100644 --- a/fdbclient/TransactionLineage.h +++ b/fdbclient/TransactionLineage.h @@ -94,7 +94,7 @@ class ScopedLineage { public: ScopedLineage(V T::*member, V const& value) : member(member) { - auto val = currentLineage->modify(member); + auto& val = currentLineage->modify(member); before = val; val = value; } diff --git a/fdbserver/storageserver.actor.cpp b/fdbserver/storageserver.actor.cpp index 7538685acf..254484710d 100644 --- a/fdbserver/storageserver.actor.cpp +++ b/fdbserver/storageserver.actor.cpp @@ -522,7 +522,7 @@ public: // process of committing makeShardDurable) // == v -> k is readable (from storage+versionedData) @ [storageVersion,v], and not being updated // when version increases - // == latestVersion -> k is readable (from stora ge+versionedData) @ [storageVersion,version.get()], and thus + // == latestVersion -> k is readable (from storage+versionedData) @ [storageVersion,version.get()], and thus // stays available when version increases CoalescedKeyRangeMap newestAvailableVersion; @@ -875,7 +875,7 @@ public: } return fun(this, request); } - }; +}; const StringRef StorageServer::CurrentRunningFetchKeys::emptyString = LiteralStringRef(""); const KeyRangeRef StorageServer::CurrentRunningFetchKeys::emptyKeyRange =