|
@@ -134,7 +134,9 @@ class PendingReplicationBlocks {
|
|
* The total number of blocks that are undergoing replication
|
|
* The total number of blocks that are undergoing replication
|
|
*/
|
|
*/
|
|
int size() {
|
|
int size() {
|
|
- return pendingReplications.size();
|
|
|
|
|
|
+ synchronized(pendingReplications) {
|
|
|
|
+ return pendingReplications.size();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|