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

Method setBucketToCollectionManifest

src/brpc/couchbase.cpp:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 &common_metadata_tracking;
58
59bool brpc::CouchbaseManifestManager::setBucketToCollectionManifest(
60 std::string server, std::string bucket,
61 CouchbaseManifestManager::CollectionManifest manifest) {
62 // Then update the collection manifest with proper locking
63 {
64 UniqueLock write_lock(rw_bucket_to_collection_manifest_mutex_);
65 bucket_to_collection_manifest_[server][bucket] = manifest;
66 }
67
68 return true;
69}
70
71bool brpc::CouchbaseManifestManager::getBucketToCollectionManifest(
72 std::string server, std::string bucket,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected