forked from Qortal/qortal
Fixed bug relating to storage manager instances.
This commit is contained in:
parent
2c382f3d3f
commit
c3835cefb1
@ -69,9 +69,6 @@ public class ArbitraryDataCleanupManager extends Thread {
|
|||||||
public void run() {
|
public void run() {
|
||||||
Thread.currentThread().setName("Arbitrary Data Cleanup Manager");
|
Thread.currentThread().setName("Arbitrary Data Cleanup Manager");
|
||||||
|
|
||||||
// Keep a reference to the storage manager as we will need this a lot
|
|
||||||
ArbitraryDataStorageManager storageManager = ArbitraryDataStorageManager.getInstance();
|
|
||||||
|
|
||||||
// Paginate queries when fetching arbitrary transactions
|
// Paginate queries when fetching arbitrary transactions
|
||||||
final int limit = 100;
|
final int limit = 100;
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
@ -86,6 +83,8 @@ public class ArbitraryDataCleanupManager extends Thread {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ArbitraryDataStorageManager storageManager = ArbitraryDataStorageManager.getInstance();
|
||||||
|
|
||||||
// Wait until storage capacity has been calculated
|
// Wait until storage capacity has been calculated
|
||||||
if (!storageManager.isStorageCapacityCalculated()) {
|
if (!storageManager.isStorageCapacityCalculated()) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user