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 c040ebd commit fe91c7cCopy full SHA for fe91c7c
lib/pool.js
@@ -66,9 +66,10 @@ function completeConnectionRequest(config, getConnectionCb) {
66
// Invoke tag fixup callback method if one has been specified and
67
// the actual tag on the connection doesn't match the one
68
// requested, or the connection is freshly created.
69
+ let requestedTag = config.tag || "";
70
if (typeof self.sessionCallback === 'function' &&
- (newSession || connInst.tag != config.tag)) {
71
- self.sessionCallback(connInst, config.tag,
+ (newSession || connInst.tag != requestedTag)) {
72
+ self.sessionCallback(connInst, requestedTag,
73
function(err) {
74
if (err) {
75
connInst.close({drop: true}, function() {
0 commit comments