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