@@ -14,8 +14,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
1414 function step ( op ) {
1515 if ( f ) throw new TypeError ( "Generator is already executing." ) ;
1616 while ( _ ) try {
17- if ( f = 1 , y && ( t = y [ op [ 0 ] & 2 ? "return" : op [ 0 ] ? "throw" : "next" ] ) && ! ( t = t . call ( y , op [ 1 ] ) ) . done ) return t ;
18- if ( y = 0 , t ) op = [ 0 , t . value ] ;
17+ if ( f = 1 , y && ( t = op [ 0 ] & 2 ? y [ "return" ] : op [ 0 ] ? y [ "throw" ] || ( ( t = y [ "return" ] ) && t . call ( y ) , 0 ) : y . next ) && ! ( t = t . call ( y , op [ 1 ] ) ) . done ) return t ;
18+ if ( y = 0 , t ) op = [ op [ 0 ] & 2 , t . value ] ;
1919 switch ( op [ 0 ] ) {
2020 case 0 : case 1 : t = op ; break ;
2121 case 4 : _ . label ++ ; return { value : op [ 1 ] , done : false } ;
@@ -42,7 +42,7 @@ var Txn = (function () {
4242 this . finished = false ;
4343 this . mutated = false ;
4444 this . dc = dc ;
45- this . ctx = { start_ts : 0 , lin_read : this . dc . getLinRead ( ) } ;
45+ this . ctx = { start_ts : 0 } ;
4646 }
4747 Txn . prototype . query = function ( q ) {
4848 return this . queryWithVars ( q , null ) ;
@@ -60,7 +60,6 @@ var Txn = (function () {
6060 req = {
6161 query : q ,
6262 startTs : this . ctx . start_ts ,
63- linRead : this . ctx . lin_read ,
6463 } ;
6564 if ( vars != null ) {
6665 varsObj_1 = { } ;
@@ -182,11 +181,10 @@ var Txn = (function () {
182181 } ) ;
183182 } ;
184183 Txn . prototype . mergeContext = function ( src ) {
184+ var _a ;
185185 if ( src == null ) {
186186 return ;
187187 }
188- util_1 . mergeLinReads ( this . ctx . lin_read , src . lin_read ) ;
189- this . dc . mergeLinReads ( src . lin_read ) ;
190188 if ( this . ctx . start_ts === 0 ) {
191189 this . ctx . start_ts = src . start_ts ;
192190 }
@@ -201,7 +199,6 @@ var Txn = (function () {
201199 ( _a = this . ctx . keys ) . push . apply ( _a , src . keys ) ;
202200 }
203201 }
204- var _a ;
205202 } ;
206203 return Txn ;
207204} ( ) ) ;
0 commit comments