HBASE-14274 Addendum sets closed to true when closing

This commit is contained in:
tedyu 2015-08-21 15:58:23 -07:00
parent abd6328d0f
commit 9b2325e16f
1 changed files with 1 additions and 1 deletions

View File

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