Minor change

This commit is contained in:
andsel
2015-09-29 21:41:58 +02:00
parent db6d296c20
commit a697e77e6c
@@ -81,7 +81,10 @@ public class MapDBPersistentStore implements IMessagesStore, ISessionsStore {
File tmpFile; File tmpFile;
try { try {
tmpFile = new File(m_storePath); tmpFile = new File(m_storePath);
tmpFile.createNewFile(); boolean fileAlreadyExists = tmpFile.createNewFile();
if (fileAlreadyExists) {
LOG.warn("File [{}] already exists", m_storePath);
}
} catch (IOException ex) { } catch (IOException ex) {
LOG.error(null, ex); LOG.error(null, ex);
throw new MQTTException("Can't create temp file for subscriptions storage [" + m_storePath + "]", ex); throw new MQTTException("Can't create temp file for subscriptions storage [" + m_storePath + "]", ex);