Changeset 7133


Ignore:
Timestamp:
Apr 21, 2016, 2:02:26 PM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #2000: Batch API for annotation handling

The annotation batcher wasn't deleting the same snapshot multiple times instead of the snapshots it was assumed to delete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/AnnotationBatcher.java

    r7128 r7133  
    358358    }
    359359    allInsertBatchers.clear();
     360    if (isDebugEnabled)
     361    {
     362      log.debug("Deleting annotation snapshots: " + snapshotsToDelete);
     363    }
    360364    for (Integer id : snapshotsToDelete)
    361365    {
    362       SnapshotManager.removeSnapshot(currentAnnotationSetId);
     366      SnapshotManager.removeSnapshot(id);
    363367    }
    364368    snapshotsToDelete.clear();
Note: See TracChangeset for help on using the changeset viewer.