Skip to content

Commit df2570e

Browse files
committed
chore(storage): minor corrections for performance while pushing back unreachable buckets to vector
1 parent b839b6b commit df2570e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/storage/internal/bucket_requests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ StatusOr<ListBucketsResponse> ListBucketsResponse::FromHttpResponse(
245245

246246
if (json.count("unreachable") != 0) {
247247
for (auto const& kv : json["unreachable"].items()) {
248-
result.unreachable.emplace_back(kv.value().get<std::string>());
248+
result.unreachable.push_back(kv.value().get<std::string>());
249249
}
250250
}
251251

google/cloud/storage/well_known_parameters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ struct RequestedPolicyVersion
595595
*
596596
* By default requests listing resources only includs the latest (live) version
597597
* of each resource, set this option to `true` to get list of unreachable
598-
* regions.
598+
* resources.
599599
*/
600600
struct ReturnPartialSuccess
601601
: public internal::WellKnownParameter<ReturnPartialSuccess, bool> {

0 commit comments

Comments
 (0)