MCPcopy Create free account
hub / github.com/apache/brpc / beginPipeline

Method beginPipeline

src/brpc/couchbase.cpp:2409–2423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2407}
2408
2409bool CouchbaseOperations::beginPipeline() {
2410 if (pipeline_active) {
2411 DEBUG_PRINT("Pipeline already active. Call clearPipeline() first.");
2412 return false;
2413 }
2414
2415 // Clear any previous state
2416 while (!pipeline_operations_queue.empty()) {
2417 pipeline_operations_queue.pop();
2418 }
2419 pipeline_request_couchbase_req.Clear();
2420
2421 pipeline_active = true;
2422 return true;
2423}
2424
2425bool CouchbaseOperations::pipelineRequest(operation_type op_type,
2426 const std::string& key,

Callers 1

performOperationsFunction · 0.80

Calls 3

emptyMethod · 0.45
popMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected