MCPcopy Create free account
hub / github.com/apple/foundationdb / write

Method write

fdbserver/VersionedBTree.actor.cpp:954–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952 }
953
954 void write(const T& item) {
955 // Start the write. It may complete immediately if no IO was being waited on
956 Future<Void> w = write_impl(this, item);
957 // If it didn't complete immediately, then store the future in operation
958 if (!w.isReady()) {
959 writeOperations = writeOperations && w;
960 }
961 }
962
963 // If readNext() cannot complete immediately because it must wait for IO, it will route to here.
964 // The purpose of this function is to serialize simultaneous readers on self while letting the

Callers 15

pushMethod · 0.45
prepareTokenFileFunction · 0.45
pushMethod · 0.45
openMethod · 0.45
pushMethod · 0.45
pushBackFunction · 0.45
pushFrontFunction · 0.45
writePhysicalBlockFunction · 0.45
asyncWriteFunction · 0.45
pushMethod · 0.45

Calls 1

isReadyMethod · 0.45

Tested by 1

writeMsgFunction · 0.36