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

Method afterWrite

src/ExtStructs.actor.cpp:76–85  ·  view source on GitHub ↗

* afterWrite()'s return future is set when the next write may be consumed from the network (and beforeWrite() * called). */

Source from the content-addressed store, hash-verified

74 * called).
75 */
76Future<Void> ExtConnection::afterWrite(Future<WriteResult> writeResult, int releasePermits) {
77 if (options.pipelineCompatMode) {
78 lastWrite = writeResult;
79 return ready(lastWrite);
80 } else {
81 lastWrite = lastErrorOrLastResult(lastWrite, writeResult, lock.getPtr(),
82 std::min(releasePermits, DOCLAYER_KNOBS->CONNECTION_MAX_PIPELINE_DEPTH / 2));
83 return currentWriteLocked;
84 }
85}

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected