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

Function write

fdbrpc/include/fdbrpc/AsyncFileNonDurable.actor.h:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 Future<Void> write(void const* data, int length, int64_t offset) override {
99 if (!file.getPtr() || g_simulator.getCurrentProcess()->shutdownSignal.getFuture().isReady())
100 return io_error().asInjectedFault();
101 return sendErrorOnShutdown(file->write(data, length, offset), assertOnReadWriteCancel);
102 }
103
104 Future<Void> truncate(int64_t size) override {
105 if (!file.getPtr() || g_simulator.getCurrentProcess()->shutdownSignal.getFuture().isReady())

Callers 15

mainFunction · 0.50
testEchoServerFunction · 0.50
writeMethod · 0.50
eio__pwriteFunction · 0.50
eio__sendfileFunction · 0.50
eio_executeFunction · 0.50
runServerFunction · 0.50
runHostFunction · 0.50
readAndDecodeFileMethod · 0.50
traceMethod · 0.50
writeMethod · 0.50

Calls 15

TraceEventClass · 0.85
debugFileSetFunction · 0.85
deterministicRandomFunction · 0.85
checkKilledFunction · 0.85
delayFunction · 0.85
waitUntilDiskReadyFunction · 0.85
waitForAllFunction · 0.85
getCurrentProcessMethod · 0.80
asInjectedFaultMethod · 0.80
detailMethod · 0.80
random01Method · 0.80
whenFunction · 0.70

Tested by 2

runServerFunction · 0.40
runHostFunction · 0.40