Skip to content

Commit

Permalink
HBASE-14274 Addendum sets closed to true when closing
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed Aug 21, 2015
1 parent abd6328 commit 9b2325e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -105,7 +105,7 @@ public MetricsRegionSourceImpl(MetricsRegionWrapper regionWrapper,

@Override
public void close() {
boolean wasClosed = closed.getAndSet(false);
boolean wasClosed = closed.getAndSet(true);

// Has someone else already closed this for us?
if (wasClosed) {
Expand Down

0 comments on commit 9b2325e

Please sign in to comment.