Skip to content

Commit 0a60b76

Browse files
committed
Merge pull request #31 from 10gen/INT-160
fix(server) INT-160 Scout does not work with WiredTiger
2 parents e5ea044 + 97f2f8b commit 0a60b76

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

scout-server/lib/routes/instance.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var boom = require('boom'),
66
async = require('async'),
77
models = require('../models'),
88
types = models.types,
9+
debug = require('debug')('scout-server:routes:instance'),
910
_ = require('underscore');
1011

1112
module.exports = {
@@ -67,15 +68,12 @@ function getAllCollections(req, fn) {
6768
var tasks = names.map(function(name) {
6869
return function(cb) {
6970
req.mongo.db(name)
70-
.collection('system.namespaces')
71-
.find()
71+
.listCollections()
7272
.toArray(function(err, data) {
7373
if (err) return fn(err);
7474

75-
var names = data.filter(function(ns) {
76-
return !(ns.name.indexOf('$') >= 0 && ns.name.indexOf('.oplog.$') < 0);
77-
}).map(function(doc) {
78-
var ns = types.ns(doc.name);
75+
var names = data.map(function(doc) {
76+
var ns = types.ns(name +'.'+ doc.name);
7977
return {
8078
_id: ns.toString(),
8179
name: ns.collection,

scout-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"jsonwebtoken": "^5.0.0",
3838
"lodash": "^3.6.0",
3939
"lynx": "^0.2.0",
40-
"mongodb": "^2.0.27",
40+
"mongodb": "^2.0.33",
4141
"mongodb-extended-json": "^1.1.2",
4242
"mongodb-log": "^1.2.5",
4343
"mongodb-ns": "^1.0.0",

0 commit comments

Comments
 (0)