mirror of https://github.com/apache/activemq.git
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:
parent
c1e94c6158
commit
b6759b33dc
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue