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.
1 parent da26bb4 commit 517bdb1Copy full SHA for 517bdb1
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