We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b45f2fb + 46df73f commit 50d6a3dCopy full SHA for 50d6a3d
src/osd/ECTransaction.cc
@@ -220,10 +220,10 @@ ECTransaction::WritePlanObj::WritePlanObj(
220
// Some kind of reconstruct is needed for conventional, but NOT for PDW!
221
do_parity_delta_write = true;
222
} else {
223
- /* Everything we need for both is available, opt for which ever is less
224
- * reads.
+ /* Everything we need for both is available, opt for whichever is fewer
+ * reads. Choose PDW in a tie as it's slightly more performant at random I/O.
225
*/
226
- do_parity_delta_write = pdw_read_shards.size() < read_shards.size();
+ do_parity_delta_write = pdw_read_shards.size() <= read_shards.size();
227
}
228
229
if (do_parity_delta_write) {
0 commit comments