Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8551D13B for ; Thu, 20 Dec 2012 19:13:14 +0000 (UTC) Received: (qmail 74923 invoked by uid 500); 20 Dec 2012 19:13:14 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 74903 invoked by uid 500); 20 Dec 2012 19:13:14 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 74894 invoked by uid 99); 20 Dec 2012 19:13:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 19:13:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 19:13:13 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C514023888EA; Thu, 20 Dec 2012 19:12:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1424644 - /accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java Date: Thu, 20 Dec 2012 19:12:53 -0000 To: commits@accumulo.apache.org From: ecn@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121220191253.C514023888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ecn Date: Thu Dec 20 19:12:53 2012 New Revision: 1424644 URL: http://svn.apache.org/viewvc?rev=1424644&view=rev Log: ACCUMULO-899 add the missing slash for borrowed files Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java Modified: accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java URL: http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java?rev=1424644&r1=1424643&r2=1424644&view=diff ============================================================================== --- accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java (original) +++ accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/RemoveEntriesForMissingFiles.java Thu Dec 20 19:12:53 2012 @@ -65,7 +65,10 @@ public class RemoveEntriesForMissingFile count++; Key key = entry.getKey(); String table = new String(KeyExtent.tableOfMetadataRow(entry.getKey().getRow())); - Path map = new Path(ServerConstants.getTablesDir() + "/" + table + key.getColumnQualifier().toString()); + String file = key.getColumnQualifier().toString(); + if (!file.startsWith("/")) + file = "/" + file; + Path map = new Path(ServerConstants.getTablesDir() + "/" + table + file); if (!fs.exists(map)) { missing++; log.info("File " + map + " is missing");