Revision c945b450 trunk/Pithos.Core/Agents/StatusAgent.cs

b/trunk/Pithos.Core/Agents/StatusAgent.cs
667 667
                    else
668 668
                    {
669 669
                        command.CommandText =
670
                            "INSERT INTO FileState (Id,FilePath,Checksum,Version,VersionTimeStamp,ShortHash,FileStatus,OverlayStatus) VALUES (:id,:path,:checksum,:version,:versionTimeStamp,:shortHash,:fileStatus,:overlayStatus)";
670
                            "INSERT INTO FileState (Id,FilePath,Checksum,Version,VersionTimeStamp,ShortHash,FileStatus,OverlayStatus,ObjectID) VALUES (:id,:path,:checksum,:version,:versionTimeStamp,:shortHash,:fileStatus,:overlayStatus,:objectID)";
671 671
                        command.Parameters.AddWithValue("id", Guid.NewGuid());
672 672
                    }
673 673

  
......
675 675
                    command.Parameters.AddWithValue("checksum", objectInfo.Hash);
676 676
                    command.Parameters.AddWithValue("shortHash", "");
677 677
                    command.Parameters.AddWithValue("version", objectInfo.Version);
678
                    command.Parameters.AddWithValue("versionTimeStamp",
679
                                                    objectInfo.VersionTimestamp);
678
                    command.Parameters.AddWithValue("versionTimeStamp", objectInfo.VersionTimestamp);
680 679
                    command.Parameters.AddWithValue("fileStatus", FileStatus.Unchanged);
681
                    command.Parameters.AddWithValue("overlayStatus",
682
                                                    FileOverlayStatus.Normal);
680
                    command.Parameters.AddWithValue("overlayStatus", FileOverlayStatus.Normal);
681
                    command.Parameters.AddWithValue("objectID",objectInfo.UUID);
683 682

  
684 683
                    var affected = command.ExecuteNonQuery();
685 684
                    return;

Also available in: Unified diff