HBASE-14274 Addendum sets closed to true when closing
This commit is contained in:
parent
abd6328d0f
commit
9b2325e16f
|
@ -105,7 +105,7 @@ public class MetricsRegionSourceImpl implements MetricsRegionSource {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
boolean wasClosed = closed.getAndSet(false);
|
boolean wasClosed = closed.getAndSet(true);
|
||||||
|
|
||||||
// Has someone else already closed this for us?
|
// Has someone else already closed this for us?
|
||||||
if (wasClosed) {
|
if (wasClosed) {
|
||||||
|
|
Loading…
Reference in New Issue