Skip to content

Commit

Permalink
fixed debug NPE in DataNodeSizeWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Apr 9, 2024
1 parent 28ae794 commit 4d64e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadc-inventory-db/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sourceCompatibility = 1.8

group = 'org.opencadc'

version = '1.0.0'
version = '1.0.1'

description = 'OpenCADC Storage Inventory database library'
def git_url = 'https://github.com/opencadc/storage-inventory'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public void run() {
while (iter.hasNext()) {
Artifact artifact = iter.next();
DataNode node = nodeDAO.getDataNode(artifact.getURI());
log.debug(artifact.getURI() + " len=" + artifact.getContentLength() + " -> " + node.getName());
if (node != null && !artifact.getContentLength().equals(node.bytesUsed)) {
log.debug(artifact.getURI() + " len=" + artifact.getContentLength() + " -> " + node.getName());
tm.startTransaction();
try {
node = (DataNode)nodeDAO.lock(node);
Expand Down

0 comments on commit 4d64e74

Please sign in to comment.