mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #478, fixes for datacache and containerbase discussed with MS via slack
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1b75f068be
commit
2d46a93676
@@ -67,7 +67,7 @@ namespace BlackCore
|
||||
{
|
||||
QMutexLocker lock(&m_mutex);
|
||||
|
||||
QLockFile revisionFileLock(m_revisionFileName);
|
||||
QLockFile revisionFileLock(m_revisionFileName + ".lock");
|
||||
if (! revisionFileLock.lock())
|
||||
{
|
||||
CLogMessage(this).error("Failed to lock %1: %2") << m_revisionFileName << lockFileError(revisionFileLock);
|
||||
@@ -93,7 +93,7 @@ namespace BlackCore
|
||||
{
|
||||
QMutexLocker lock(&m_mutex);
|
||||
|
||||
QLockFile revisionFileLock(m_revisionFileName);
|
||||
QLockFile revisionFileLock(m_revisionFileName + ".lock");
|
||||
if (revLock && ! revisionFileLock.lock())
|
||||
{
|
||||
CLogMessage(this).error("Failed to lock %1: %2") << m_revisionFileName << lockFileError(revisionFileLock);
|
||||
|
||||
@@ -141,6 +141,7 @@ namespace BlackMisc
|
||||
//! \copydoc CValueObject::convertFromJson
|
||||
void convertFromJson(const QJsonObject &json)
|
||||
{
|
||||
derived().clear();
|
||||
QJsonArray array = json.value("containerbase").toArray();
|
||||
for (auto i = array.begin(); i != array.end(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user