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 0535be6 + 77fbe89 commit 3f91f32Copy full SHA for 3f91f32
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