예제 #1
0
파일: top.cpp 프로젝트: DjComandos/mongo
        NamespaceStats getDataLocks() {

            BSONObj out;
            if ( ! conn().simpleCommand( _db , &out , "serverStatus" ) ) {
                cout << "error: " << out << endl;
                return NamespaceStats();
            }

            return StatUtil::parseServerStatusLocks( out.getOwned() );
        }
예제 #2
0
파일: top.cpp 프로젝트: ChrisKozak/mongo
        NamespaceStats getDataLocks() {

            BSONObj out;
            if (!conn().simpleCommand(toolGlobalParams.db, &out, "serverStatus")) {
                toolError() << "error: " << out << std::endl;
                return NamespaceStats();
            }

            return StatUtil::parseServerStatusLocks( out.getOwned() );
        }