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:
parent
9c73385702
commit
78a837f00a
|
@ -143,13 +143,15 @@ public class MetaEditor {
|
||||||
*/
|
*/
|
||||||
static void deleteFromMetaTable(final CatalogTracker ct, final Delete d)
|
static void deleteFromMetaTable(final CatalogTracker ct, final Delete d)
|
||||||
throws IOException {
|
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.
|
* Delete the passed <code>deletes</code> from the <code>.META.</code> table.
|
||||||
* @param ct CatalogTracker on whose back we will ride the edit.
|
* @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
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
static void deleteFromMetaTable(final CatalogTracker ct, final List<Delete> deletes)
|
static void deleteFromMetaTable(final CatalogTracker ct, final List<Delete> deletes)
|
||||||
|
|
Loading…
Reference in New Issue