Rename UnsignedLongSet.size()
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / persisted / FrontendHistoryMetadata.java
index c698ccf8d22e158fc5b74c1b2b2fd9958560912a..a27b2c0311b3a0431af0cf036296b146bde82661 100644 (file)
@@ -61,7 +61,7 @@ public final class FrontendHistoryMetadata implements WritableObject {
         out.writeBoolean(closed);
 
         final int closedSize = closedTransactions.size();
-        final int purgedSize = purgedTransactions.size();
+        final int purgedSize = purgedTransactions.rangeSize();
         WritableObjects.writeLongs(out, closedSize, purgedSize);
         closedTransactions.writeEntriesTo(out, closedSize);
         purgedTransactions.writeRangesTo(out, purgedSize);