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 de03ed4 + 3f91f32 commit 69b6879Copy full SHA for 69b6879
src/transaction/requests.rs
@@ -240,7 +240,7 @@ impl Shardable for kvrpcpb::PrewriteRequest {
240
}
241
242
// Only if there is only one request to send
243
- if self.try_one_pc && self.mutations.len() != self.secondaries.len() + 1 {
+ if self.try_one_pc && shard.len() != self.secondaries.len() + 1 {
244
self.set_try_one_pc(false);
245
246
0 commit comments