Skip to content

Commit

Permalink
Added docs
Browse files Browse the repository at this point in the history
milanmajchrak committed Dec 20, 2023
1 parent bef2c7d commit 4797907
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -512,6 +512,14 @@ protected BitStoreService getStore(int position) throws IOException {
return bitStoreService;
}

/**
* Decide which store number should be used for the given bitstream.
* If the bitstream is synchronized (stored in to S3 and local), then the static store number is used.
* Otherwise, the bitstream's store number is used.
*
* @param bitstream bitstream
* @return store number
*/
public int decideStoreNumber(Bitstream bitstream) {
if (Objects.equals(bitstream.getStoreNumber(), SYNCHRONIZED_STORES_NUMBER)) {
return incoming;
2 changes: 1 addition & 1 deletion dspace-api/src/test/data/dspaceFolder/config/local.cfg
Original file line number Diff line number Diff line change
@@ -279,4 +279,4 @@ handle.canonical.prefix = ${dspace.ui.url}/handle/
file.preview.enabled = true

### Storage service ###
sync.storage.service.enabled = false
sync.storage.service.enabled = false

0 comments on commit 4797907

Please sign in to comment.