diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2017-06-28 16:07:27 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2017-07-05 15:27:24 -0400 |
commit | 9d803b41497eb54864361a3877097d8e1dd55dc2 (patch) | |
tree | 5190f31e6057fa391ac2b3de861159d6d70081b1 /src/mongo/s/chunk.h | |
parent | 3c9d91f8e408339ba2ecfdf1c34cb93b4ed6a926 (diff) | |
download | mongo-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.h | 1 |
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. |