0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Chunk doesn't need shared_from_this anymore

This commit is contained in:
Mathias Stearn 2011-05-06 17:00:15 -04:00
parent e15ca90662
commit 0ca8059539

View File

@ -52,7 +52,7 @@ namespace mongo {
x is in a shard iff
min <= x < max
*/
class Chunk : boost::noncopyable, public boost::enable_shared_from_this<Chunk> {
class Chunk : boost::noncopyable {
public:
Chunk( const ChunkManager * info , BSONObj from);
Chunk( const ChunkManager * info , const BSONObj& min, const BSONObj& max, const Shard& shard);