HoustonPutman commented on code in PR #3916:
URL: https://github.com/apache/solr/pull/3916#discussion_r2742690647


##########
solr/core/src/java/org/apache/solr/cloud/api/collections/AdminCmdContext.java:
##########
@@ -42,6 +56,36 @@ public String getAsyncId() {
     return asyncId;
   }
 
+  public void setLockId(String lockId) {
+    this.lockId = lockId;
+    regenerateSubRequestCallingLockIds();
+  }
+
+  public String getLockId() {
+    return lockId;
+  }
+
+  public void setCallingLockIds(String callingLockIds) {
+    this.callingLockIds = callingLockIds;
+    regenerateSubRequestCallingLockIds();
+  }
+
+  private void regenerateSubRequestCallingLockIds() {
+    if (StrUtils.isNotBlank(callingLockIds) && StrUtils.isNotBlank(lockId)) {
+      subRequestCallingLockIds += "," + lockId;
+    } else if (StrUtils.isNotBlank(callingLockIds)) {
+      subRequestCallingLockIds = callingLockIds;
+    } else if (StrUtils.isNotBlank(lockId)) {
+      subRequestCallingLockIds = lockId;
+    } else {
+      subRequestCallingLockIds = null;
+    }
+  }
+
+  public String getCallingLockIds() {

Review Comment:
   Fair enough, I went back and forth on this. I can easily change it back 
though.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to