function _isSharded(collName) {
        var collName = "" + collName;
        var dbName;

        if (typeof collName.getCollectionNames == 'function') {
            dbName = "" + collName;
            collName = undefined;
        }

        if (dbName) {
            var x = self.config.databases.findOne({ _id : dbname });
            if (x)
                return x.partitioned;
            else
                return false;
        }

        if (collName) {
            var x = self.config.collections.findOne({ _id : collName });
            if (x)
                return true;
            else
                return false;
        }
    }
/**
     * Checks whether the specified collection is sharded by consulting the config metadata.
     */
Checks whether the specified collection is sharded by consulting the config metadata.
Checks whether the specified collection is sharded by consulting the config metadata .
function _isSharded(collName) {
        var collName = "" + collName;
        var dbName;
        if (typeof collName.getCollectionNames == 'function') {
            dbName = "" + collName;
            collName = undefined;
        }
        if (dbName) {
            var x = self.config.databases.findOne({ _id : dbname });
            if (x)
                return x.partitioned;
            else
                return false;
        }
        if (collName) {
            var x = self.config.collections.findOne({ _id : collName });
            if (x)
                return true;
            else
                return false;
        }
    }
function _isSharded ( collName ) { var collName = "" + collName ; var dbName ; if ( typeof collName . getCollectionNames == 'function' ) { dbName = "" + collName ; collName = undefined ; } if ( dbName ) { var x = self . config . databases . findOne ( { _id : dbname } ) ; if ( x ) return x . partitioned ; else return false ; } if ( collName ) { var x = self . config . collections . findOne ( { _id : collName } ) ; if ( x ) return true ; else return false ; } }
Checks whether the specified collection is sharded by consulting the config metadata.
Checks whether the specified collection is sharded by consulting the config metadata .