diff --git a/nucliadb/nucliadb/common/maindb/tikv.py b/nucliadb/nucliadb/common/maindb/tikv.py index 63c05d6457..a5ed54ca41 100644 --- a/nucliadb/nucliadb/common/maindb/tikv.py +++ b/nucliadb/nucliadb/common/maindb/tikv.py @@ -378,7 +378,7 @@ async def begin( self, read_only: bool = False ) -> Union[TiKVTransaction, ReadOnlyTiKVTransaction]: conn = self.get_connection_holder() - if read_only: - return ReadOnlyTiKVTransaction(await conn.get_snapshot(), self) - else: - return TiKVTransaction(await conn.begin_transaction(), self) + # if read_only: + # return ReadOnlyTiKVTransaction(await conn.get_snapshot(), self) + # else: + return TiKVTransaction(await conn.begin_transaction(), self)