[SERVER-30180] Move should-split logic from cluster_write.cpp to chunk.cpp Created: 17/Jul/17  Updated: 30/Oct/23  Resolved: 30/Aug/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.10
Fix Version/s: 3.5.11

Type: Improvement Priority: Major - P3
Reporter: Hugh Han Assignee: Hugh Han
Resolution: Fixed Votes: 0
Labels: sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Inside the updateChunkWriteStatsAndSplitIfNeeded function, there exists logic to check whether a particular chunk should be split, using the calculateDesiredChunkSize function to return the splitThreshold.

The calculation of splitThreshold should be moved into the addBytesWritten function inside of chunk.cpp.



 Comments   
Comment by Githook User [ 21/Jul/17 ]

Author:

{u'username': u'hughhan1', u'name': u'Hugh Han', u'email': u'hughhan1@gmail.com'}

Message: SERVER-30180 Move should-split logic from cluster_write.cpp to chunk.cpp
Branch: master
https://github.com/mongodb/mongo/commit/e6032315026a446d1c8eef647b0bd6f2e82f2edc

Generated at Thu Feb 08 04:22:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.