You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sessions.ts
+13-31
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ export class ClientSession
137
137
* initially undefined. Gets set to false when startTransaction is called. When commitTransaction is sent to server, if the commitTransaction succeeds, it is then set to undefined, otherwise, set to true */
138
138
commitAttempted?: boolean;
139
139
/** @internal */
140
-
[kServerSession]: ServerSession|null;
140
+
private[kServerSession]: ServerSession|null;
141
141
/** @internal */
142
142
[kSnapshotTime]?: Timestamp;
143
143
/** @internal */
@@ -299,11 +299,8 @@ export class ClientSession
299
299
if(serverSession!=null){
300
300
// release the server session back to the pool
301
301
this.sessionPool.release(serverSession);
302
-
// Make sure a new serverSession never makes it onto this ClientSession
303
-
Object.defineProperty(this,kServerSession,{
304
-
value: ServerSession.clone(serverSession),
305
-
writable: false
306
-
});
302
+
// Store a clone of the server session for reference (debugging)
0 commit comments