Skip to content

Commit

Permalink
add ability to use single-row transactions
Browse files Browse the repository at this point in the history
fixes #10018
  • Loading branch information
mackenziestarr committed Dec 26, 2019
1 parent fe9deb1 commit 401e048
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bigtable/google/cloud/bigtable/row.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ def commit(self):
table_name=self._table.name,
row_key=self._row_key,
predicate_filter=self._filter.to_pb(),
app_profile_id=self._table._app_profile_id,
true_mutations=true_mutations,
false_mutations=false_mutations,
)
Expand Down Expand Up @@ -908,7 +909,10 @@ def commit(self):

data_client = self._table._instance._client.table_data_client
row_response = data_client.read_modify_write_row(
table_name=self._table.name, row_key=self._row_key, rules=self._rule_pb_list
table_name=self._table.name,
row_key=self._row_key,
rules=self._rule_pb_list,
app_profile_id=self._table._app_profile_id
)

# Reset modifications after commit-ing request.
Expand Down

0 comments on commit 401e048

Please sign in to comment.