HBASE-14274 Addendum sets closed to true when closing

This commit is contained in:
tedyu 2015-08-21 15:59:15 -07:00
parent ca9fdb142e
commit f05770b96f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {