summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/chunk.h')
-rw-r--r--src/mongo/s/chunk.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/s/chunk.h b/src/mongo/s/chunk.h
index 16f5909a72a..3f60e997737 100644
--- a/src/mongo/s/chunk.h
+++ b/src/mongo/s/chunk.h
@@ -29,7 +29,6 @@
#pragma once
-#include "mongo/platform/atomic_word.h"
#include "mongo/s/catalog/type_chunk.h"
#include "mongo/s/chunk_version.h"
#include "mongo/s/shard_id.h"
@@ -93,7 +92,7 @@ public:
}
bool isJumbo() const {
- return _jumbo.load();
+ return _jumbo;
}
/**
@@ -108,8 +107,6 @@ public:
*/
std::string toString() const;
- BSONObj toBSON() const;
-
// Returns true if this chunk contains the given shard key, and false otherwise
//
// Note: this function takes an extracted *key*, not an original document (the point may be
@@ -133,7 +130,7 @@ private:
// Indicates whether this chunk should be treated as jumbo and not attempted to be moved or
// split
- AtomicWord<bool> _jumbo;
+ mutable bool _jumbo;
// Used for tracking writes to this chunk, to estimate its size for the autosplitter. Since
// ChunkInfo objects are always treated as const, and this contains metadata about the chunk
@@ -192,8 +189,9 @@ public:
/**
* Returns a string represenation of the chunk for logging.
*/
- std::string toString() const;
- BSONObj toBSON() const;
+ std::string toString() const {
+ return _chunkInfo.toString();
+ }
// Returns true if this chunk contains the given shard key, and false otherwise
//