REQ-3540: 续费
This commit is contained in:
parent
172fcacab5
commit
02730d3213
@ -115,11 +115,11 @@ public class FileDatabaseService {
|
|||||||
if (indexNode == null || !indexNode.isFile())
|
if (indexNode == null || !indexNode.isFile())
|
||||||
return;
|
return;
|
||||||
FileDatabase db = fileDatabaseDao.findForUpdateOrNull(indexNode.scopeCode());
|
FileDatabase db = fileDatabaseDao.findForUpdateOrNull(indexNode.scopeCode());
|
||||||
if (db == null || !db.isActivated())
|
if (db == null)
|
||||||
return;
|
return;
|
||||||
fileDatabaseDao.updateUsedCapacity(db.getCode(), indexQueryService.getUsedFileSize(db));
|
fileDatabaseDao.updateUsedCapacity(db.getCode(), indexQueryService.getUsedFileSize(db));
|
||||||
db = fileDatabaseDao.findForUpdateOrNull(db.getCode());
|
db = fileDatabaseDao.findOrNull(db.getCode());
|
||||||
if (db.isCapacityExhausted())
|
if (db.isActivated() && db.isCapacityExhausted())
|
||||||
fileDatabaseDao.updateState(db.getCode(), FileDatabaseState.CAPACITY_EXHAUSTED);
|
fileDatabaseDao.updateState(db.getCode(), FileDatabaseState.CAPACITY_EXHAUSTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user