Browse Source

Reverting controversial change, to be investigated later

Renato Golin 13 years ago
parent
commit
d17716695c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dali/base/dadfs.cpp

+ 2 - 2
dali/base/dadfs.cpp

@@ -2791,14 +2791,14 @@ public:
                 }
             }
         }
-        // This is a new property tree, no concurrent access, just reload
-        reloadProperties();
+        lockProperties(defaultTimeout);         // only needed to load attr (no lock)
         shrinkFileTree(root);
         if (totalsize!=(offset_t)-1)
             attr->setPropInt64("@size", totalsize);
         if (useableCheckSum)
             attr->setPropInt64("@checkSum", checkSum);
         setModified();
+        unlockProperties();
 #ifdef EXTRA_LOGGING
         LOGPTREE("CDistributedFile.b root.2",root);
 #endif