hkeebler commented on a change in pull request #1344: Fix #1043 Support stable 
~del split points
URL: https://github.com/apache/accumulo/pull/1344#discussion_r323910545
 
 

 ##########
 File path: 
server/base/src/main/java/org/apache/accumulo/server/metadata/ServerAmpleImpl.java
 ##########
 @@ -196,9 +199,14 @@ private BatchWriter createWriter(TableId tableId) {
   public static Mutation createDeleteMutation(ServerContext context, TableId 
tableId,
       String pathToRemove) {
     Path path = context.getVolumeManager().getFullPath(tableId, pathToRemove);
-    Mutation delFlag = new Mutation(new 
Text(MetadataSchema.DeletesSection.getRowPrefix() + path));
+    Mutation delFlag = new Mutation(new Text(
+        MetadataSchema.DeletesSection.getRowPrefix() + 
SortSkew.getCode(path.toString()) + path));
     delFlag.put(EMPTY_TEXT, EMPTY_TEXT, new Value(new byte[] {}));
     return delFlag;
   }
 
+  private int getDeletePrefixLength() {
 
 Review comment:
   It could be a static constant in the class - the components added are static 
values
   `private static final int deletePrefixLength = 
MetadataSchema.DeletesSection.getRowPrefix().length() + SortSkew.getLength();`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to