We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69e7fa commit d15b973Copy full SHA for d15b973
google-cloud-clients/google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClientImpl.java
@@ -58,7 +58,7 @@ public Timestamp write(Iterable<Mutation> mutations) throws SpannerException {
58
public Timestamp writeAtLeastOnce(Iterable<Mutation> mutations) throws SpannerException {
59
Span span = tracer.spanBuilder(READ_WRITE_TRANSACTION).startSpan();
60
try (Scope s = tracer.withSpan(span)) {
61
- return pool.getReadSession().writeAtLeastOnce(mutations);
+ return pool.getReadWriteSession().writeAtLeastOnce(mutations);
62
} catch (RuntimeException e) {
63
TraceUtil.endSpanWithFailure(span, e);
64
throw e;
0 commit comments