Skip to content

Commit

Permalink
OAK-11152 - Segment copy - avoid instantiation of source persistence …
Browse files Browse the repository at this point in the history
…if it is not null (#1743)
  • Loading branch information
dulceanu committed Sep 26, 2024
1 parent 930dfe2 commit 2398540
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ public int run() {

if (flat && destType == SegmentStoreType.TAR) {
try {
srcPersistence = newSegmentNodeStorePersistence(srcType, source, azureStorageCredentialManager);
if (srcPersistence == null) {
srcPersistence = newSegmentNodeStorePersistence(srcType, source, azureStorageCredentialManager);
}

SegmentArchiveManager sourceManager = srcPersistence.createArchiveManager(false, false,
new IOMonitorAdapter(), new FileStoreMonitorAdapter(), new RemoteStoreMonitorAdapter());
Expand Down

0 comments on commit 2398540

Please sign in to comment.