We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f53ecc6 commit 1d3fd91Copy full SHA for 1d3fd91
src/cursor/abstract_cursor.ts
@@ -1039,9 +1039,7 @@ export abstract class AbstractCursor<
1039
this.selectedServer &&
1040
!this.cursorSession.hasEnded
1041
) {
1042
- this.isKilled = true;
1043
const cursorId = this.cursorId;
1044
- this.cursorId = Long.ZERO;
1045
1046
await executeOperation(
1047
this.cursorClient,
@@ -1061,6 +1059,8 @@ export abstract class AbstractCursor<
1061
1059
if (!this.cursorSession?.inTransaction()) {
1062
1060
maybeClearPinnedConnection(this.cursorSession, { error });
1063
}
+ this.cursorId = Long.ZERO;
+ this.isKilled = true;
1064
} finally {
1065
this.emitClose();
1066
0 commit comments