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

Function transactionPriorityToString

fdbclient/include/fdbclient/FDBTypes.h:1292–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290};
1291
1292inline const char* transactionPriorityToString(TransactionPriority priority, bool capitalize = true) {
1293 switch (priority) {
1294 case TransactionPriority::BATCH:
1295 return capitalize ? "Batch" : "batch";
1296 case TransactionPriority::DEFAULT:
1297 return capitalize ? "Default" : "default";
1298 case TransactionPriority::IMMEDIATE:
1299 return capitalize ? "Immediate" : "immediate";
1300 }
1301
1302 ASSERT(false);
1303 throw internal_error();
1304}
1305
1306struct StorageMigrationType {
1307 // These enumerated values are stored in the database configuration, so can NEVER be changed. Only add new ones

Callers 2

manualThrottleTagMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected