summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2017-06-28 16:07:27 -0400
committerAndy Schwerin <schwerin@mongodb.com>2017-07-05 15:27:24 -0400
commit9d803b41497eb54864361a3877097d8e1dd55dc2 (patch)
tree5190f31e6057fa391ac2b3de861159d6d70081b1 /src/mongo/s/chunk.h
parent3c9d91f8e408339ba2ecfdf1c34cb93b4ed6a926 (diff)
downloadmongo-9d803b41497eb54864361a3877097d8e1dd55dc2.tar.gz
SERVER-29817 Always intialize bytesWritten to 0 for chunks.
Previously, it was initialized to a pseudorandom value that was less than some fraction of the maximum chunk size. This introduced a depencency between the chunk constuctor and the balancer, and provided no particular value.
Diffstat (limited to 'src/mongo/s/chunk.h')
-rw-r--r--src/mongo/s/chunk.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/s/chunk.h b/src/mongo/s/chunk.h
index 484a1d9597c..af89044f41c 100644
--- a/src/mongo/s/chunk.h
+++ b/src/mongo/s/chunk.h
@@ -80,7 +80,6 @@ public:
uint64_t getBytesWritten() const;
uint64_t addBytesWritten(uint64_t bytesWrittenIncrement);
void clearBytesWritten();
- void randomizeBytesWritten();
/**
* Marks this chunk as jumbo. Only moves from false to true once and is used by the balancer.