Skip to content

Commit 6076381

Browse files
authored
test(spanner): remove PartitionDataBoostOption sample workaround (#13392)
It appears that us-east1 now has DataBoost OA capacity. Fixes #11201.
1 parent f8db9e4 commit 6076381

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

google/cloud/spanner/samples/samples.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,10 +2640,6 @@ void UsePartitionQuery(google::cloud::spanner::Client client) {
26402640
for (auto const& partition : *partitions) {
26412641
auto rows = client.ExecuteQuery(partition);
26422642
for (auto& row : spanner::StreamOf<RowType>(rows)) {
2643-
if (row.status().code() == //! TODO(#11201)
2644-
google::cloud::StatusCode::kPermissionDenied) { //! TODO(#11201)
2645-
continue; //! TODO(#11201)
2646-
} //! TODO(#11201)
26472643
if (!row) throw std::move(row).status();
26482644
number_of_rows++;
26492645
}
@@ -3939,10 +3935,6 @@ void PartitionRead(google::cloud::spanner::Client client) {
39393935
remote_connection.ReceiveReadPartitionFromRemoteMachine();
39403936
if (!partition) throw std::move(partition).status();
39413937
for (auto& row : client.Read(*partition)) {
3942-
if (row.status().code() == //! TODO(#11201)
3943-
google::cloud::StatusCode::kPermissionDenied) { //! TODO(#11201)
3944-
continue; //! TODO(#11201)
3945-
} //! TODO(#11201)
39463938
if (!row) throw std::move(row).status();
39473939
ProcessRow(*row);
39483940
}
@@ -3992,10 +3984,6 @@ void PartitionQuery(google::cloud::spanner::Client client) {
39923984
remote_connection.ReceiveQueryPartitionFromRemoteMachine();
39933985
if (!partition) throw std::move(partition).status();
39943986
for (auto& row : client.ExecuteQuery(*partition)) {
3995-
if (row.status().code() == //! TODO(#11201)
3996-
google::cloud::StatusCode::kPermissionDenied) { //! TODO(#11201)
3997-
continue; //! TODO(#11201)
3998-
} //! TODO(#11201)
39993987
if (!row) throw std::move(row).status();
40003988
ProcessRow(*row);
40013989
}

0 commit comments

Comments
 (0)