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

Function getWriteOperationCost

fdbclient/include/fdbclient/NativeAPI.actor.h:557–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555ACTOR Future<bool> checkSafeExclusions(Database cx, std::vector<AddressExclusion> exclusions);
556
557inline uint64_t getWriteOperationCost(uint64_t bytes) {
558 return bytes / std::max(1, CLIENT_KNOBS->WRITE_COST_BYTE_FACTOR) + 1;
559}
560
561// Create a transaction to set the value of system key \xff/conf/perpetual_storage_wiggle. If enable == true, the value
562// will be 1. Otherwise, the value will be 0.

Calls

no outgoing calls

Tested by

no test coverage detected