[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: |