Skip to content

Commit 4a9f164

Browse files
authored
Small fix for BigtableIO.WriteOperation.finalize
1 parent fc5fee2 commit 4a9f164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/src/main/java/com/google/cloud/dataflow/sdk/io/bigtable/BigtableIO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,9 @@ public void initialize(PipelineOptions options) {}
976976
public void finalize(Iterable<Long> writerResults, PipelineOptions options) {
977977
long count = 0;
978978
for (Long value : writerResults) {
979-
value += count;
979+
count += value;
980980
}
981-
logger.debug("Wrote {} elements to BigtableIO.Sink {}", sink);
981+
logger.debug("Wrote {} elements to BigtableIO.Sink {}", count, sink);
982982
}
983983

984984
@Override

0 commit comments

Comments
 (0)