AMQ-6403 - init broker temp from provided temp store to align usage checks. Thanks for the patchh shailendra14k@gmail.com, made a mod to respect broker.tmpDataDirectory as a default. This closes #204

This commit is contained in:
gtully 2016-10-06 11:47:55 +01:00
parent c1e94c6158
commit b6759b33dc
1 changed files with 7 additions and 0 deletions

View File

@ -1772,6 +1772,13 @@ public class BrokerService implements Service {
*/
public void setTempDataStore(PListStore tempDataStore) {
this.tempDataStore = tempDataStore;
if (tempDataStore != null) {
if (tmpDataDirectory == null) {
tmpDataDirectory = tempDataStore.getDirectory();
} else if (tempDataStore.getDirectory() == null) {
tempDataStore.setDirectory(tmpDataDirectory);
}
}
configureService(tempDataStore);
}