HBASE-7627 UnsupportedOperationException in CatalogJanitor thread

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290@1445857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2013-02-13 19:02:44 +00:00
parent 9c73385702
commit 78a837f00a
1 changed files with 4 additions and 2 deletions

View File

@ -143,13 +143,15 @@ public class MetaEditor {
*/
static void deleteFromMetaTable(final CatalogTracker ct, final Delete d)
throws IOException {
deleteFromMetaTable(ct, Arrays.asList(d));
List<Delete> dels = new ArrayList<Delete>(1);
dels.add(d);
deleteFromMetaTable(ct, dels);
}
/**
* Delete the passed <code>deletes</code> from the <code>.META.</code> table.
* @param ct CatalogTracker on whose back we will ride the edit.
* @param deletes Deletes to add to .META.
* @param deletes Deletes to add to .META. This list should support #remove.
* @throws IOException
*/
static void deleteFromMetaTable(final CatalogTracker ct, final List<Delete> deletes)