diff --git a/lib/plugins/sharding.js b/lib/plugins/sharding.js index 4a2f85ea1fe..1d5cf5944ec 100644 --- a/lib/plugins/sharding.js +++ b/lib/plugins/sharding.js @@ -2,6 +2,10 @@ var utils = require('../utils'); +/*! + * ignore + */ + module.exports = function shardingPlugin(schema) { schema.post('init', function() { storeShard.call(this); @@ -16,6 +20,10 @@ module.exports = function shardingPlugin(schema) { }); }; +/*! + * ignore + */ + function applyWhere() { var paths; var len; @@ -32,18 +40,15 @@ function applyWhere() { } /*! - * Stores the current values of the shard keys. - * - * ####Note: - * - * _Shard key values do not / are not allowed to change._ - * - * @api private - * @method $__storeShard - * @memberOf Document + * ignore */ + module.exports.storeShard = storeShard; +/*! + * ignore + */ + function storeShard() { // backwards compat var key = this.schema.options.shardKey || this.schema.options.shardkey;