cshannon commented on code in PR #4133:
URL: https://github.com/apache/accumulo/pull/4133#discussion_r1450406800


##########
core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java:
##########
@@ -387,10 +390,12 @@ String doFateOperation(FateOperation op, List<ByteBuffer> 
args, Map<String,Strin
       String tableOrNamespaceName, boolean wait)
       throws AccumuloSecurityException, TableExistsException, 
TableNotFoundException,
       AccumuloException, NamespaceExistsException, NamespaceNotFoundException {
-    Long opid = null;
+    TFateId opid = null;
 
     try {
-      opid = beginFateOperation();
+      TFateInstanceType t = 
tableOrNamespaceName.startsWith(Namespace.ACCUMULO.name())
+          ? TFateInstanceType.META : TFateInstanceType.USER;
+      opid = beginFateOperation(t);

Review Comment:
   This is cleaner for sure, I like this change.



-- 
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]

Reply via email to