Skip to content

Commit

Permalink
Only skip backup so source initialization if the source is not explic…
Browse files Browse the repository at this point in the history
…itly enabled

Summary: As in the title.

Differential Revision: D52730369

fbshipit-source-id: 0aa2a6b895d55f6f9168e02283a4829aac97e2c0
  • Loading branch information
adicatana authored and facebook-github-bot committed Jan 12, 2024
1 parent 54c4462 commit 87947ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/com/facebook/soloader/SoLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ private static int makePrepareFlags() {
if ((sFlags & SOLOADER_DISABLE_FS_SYNC_JOB) != 0) {
prepareFlags |= SoSource.PREPARE_FLAG_DISABLE_FS_SYNC_JOB;
}
prepareFlags |= SoSource.PREPARE_FLAG_SKIP_BACKUP_SO_SOURCE;
if ((sFlags & SOLOADER_EXPLICITLY_ENABLE_BACKUP_SOSOURCE) == 0) {
prepareFlags |= SoSource.PREPARE_FLAG_SKIP_BACKUP_SO_SOURCE;
}
return prepareFlags;
} finally {
sSoSourcesLock.writeLock().unlock();
Expand Down

0 comments on commit 87947ff

Please sign in to comment.