Skip to content

Commit ab51aa1

Browse files
committed
Remove mongodb labeling to prevent MongoDB 1.4 issues.
1 parent b441e19 commit ab51aa1

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

lib/hijack/set_labels.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@ setLabels = function () {
55
return originalSend.call(this, msg);
66
}
77

8-
// name mongodb.Connection.createDataHandler
9-
var mongodb = MongoInternals.NpmModule;
10-
// Sometimes, createDataHandler is not there. In that case, we don't need
11-
// to crash the app.
12-
if (mongodb.Connection.createDataHandler) {
13-
var originalCreateDataHandler = mongodb.Connection.createDataHandler;
14-
mongodb.Connection.createDataHandler = function (self) {
15-
var originalHandler = originalCreateDataHandler.call(this, self);
16-
return function kadira_MongoDB_dataHandler (data) {
17-
return originalHandler.call(this, data);
18-
}
19-
}
20-
}
21-
228
// name Multiplexer initial adds
239
var originalSendAdds = MeteorX.Multiplexer.prototype._sendAdds;
2410
MeteorX.Multiplexer.prototype._sendAdds = function kadira_Multiplexer_sendAdds (handle) {

tests/hijack/set_labels.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ Tinytest.add(
55
}
66
);
77

8-
Tinytest.add(
9-
'CPU Profiler - set labels - mongodb.Connection.createDataHandler',
10-
function (test) {
11-
var mongodb = MongoInternals.NpmModule;
12-
var handler = mongodb.Connection.createDataHandler();
13-
test.equal(handler.name, 'kadira_MongoDB_dataHandler');
14-
}
15-
);
16-
178
Tinytest.add(
189
'CPU Profiler - set labels - MongoCursor methods',
1910
function (test) {

0 commit comments

Comments
 (0)