Revision e4067290 trunk/Pithos.Core/Agents/Uploader.cs

b/trunk/Pithos.Core/Agents/Uploader.cs
183 183

  
184 184
                                await UploadWithHashMap(accountInfo, cloudFile, fileInfo as FileInfo, cloudFile.Name, treeHash,cancellationToken);
185 185
                            }
186
                            //If everything succeeds, change the file and overlay status to normal
187
                            StatusKeeper.SetFileState(fullFileName, FileStatus.Unchanged, FileOverlayStatus.Normal, "");
186
                            var currentInfo=client.GetObjectInfo(cloudFile.Account, cloudFile.Container, cloudFile.Name);
187
                            //If there is no stored ObjectID in the file state, add it
188
                            if (action.FileState == null || action.FileState.ObjectID == null)
189
                            {
190
                                StatusKeeper.StoreInfo(fullFileName,currentInfo);
191
                            }
192
                            else                             
193
                                //If everything succeeds, change the file and overlay status to normal
194
                                StatusKeeper.SetFileState(fullFileName, FileStatus.Unchanged, FileOverlayStatus.Normal, "");
188 195
                        }
189 196
                        catch (WebException exc)
190 197
                        {

Also available in: Unified diff