MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / updateMaxReceivedRequestID

Method updateMaxReceivedRequestID

src/ExtStructs.h:141–149  ·  view source on GitHub ↗

* Update the max RequestID we have seen received on this connection. */

Source from the content-addressed store, hash-verified

139 * Update the max RequestID we have seen received on this connection.
140 */
141 void updateMaxReceivedRequestID(int32_t id) {
142 if (id > maxReceivedRequestID)
143 maxReceivedRequestID = id;
144
145 // Now make sure the RequestIDs the server will generate are very far ahead of the ones seen from the client.
146 int32_t minGeneratedID = maxReceivedRequestID + 1000000;
147 if (minGeneratedID > nextServerGeneratedRequestID)
148 nextServerGeneratedRequestID = minGeneratedID;
149 }
150
151private:
152 Future<Void> currentWriteLocked;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected