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
|
||||
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