Skip to content

Commit c4bff0b

Browse files
authored
Merge pull request GoogleCloudPlatform#555 from gsgalloway/patch-1
Small fix for BigtableIO's WriteOperation.finalize
2 parents fc5fee2 + 4a9f164 commit c4bff0b

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)