throws IOException {
HTable t = new HTable(c, HConstants.META_TABLE_NAME);
byte [] cell = t.get(row, HConstants.COL_REGIONINFO);
// Throws exception if null.
HRegionInfo info = Writables.getHRegionInfo(cell);
long id = t.startUpdate(row);
info.setOffline(onlineOffline);
t.put(id, HConstants.COL_REGIONINFO, Writables.getBytes(info));
t.delete(id, HConstants.COL_SERVER);
t.delete(id, HConstants.COL_STARTCODE);
t.commit(id);