Revision 81c5c310 trunk/Pithos.Core/Agents/BlockUpdater.cs
b/trunk/Pithos.Core/Agents/BlockUpdater.cs | ||
---|---|---|
45 | 45 |
using System.Diagnostics.Contracts; |
46 | 46 |
using System.IO; |
47 | 47 |
using System.Linq; |
48 |
using System.Reflection; |
|
48 | 49 |
using System.Security.Cryptography; |
49 | 50 |
using System.Text; |
50 | 51 |
using System.Threading.Tasks; |
... | ... | |
54 | 55 |
{ |
55 | 56 |
class BlockUpdater |
56 | 57 |
{ |
58 |
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
|
59 |
|
|
57 | 60 |
public string FilePath { get; private set; } |
58 | 61 |
public string RelativePath { get; private set; } |
59 | 62 |
|
... | ... | |
217 | 220 |
|
218 | 221 |
private void ClearBlocks() |
219 | 222 |
{ |
223 |
if (Log.IsDebugEnabled) |
|
224 |
Log.DebugFormat("Clearing blocks for {0}",this.FilePath); |
|
220 | 225 |
//Get all the the block paths, orphan or not |
221 | 226 |
var paths= _blocks.Select(pair => pair.Value) |
222 | 227 |
.Union(_orphanBlocks.Select(pair => pair.Value)); |
Also available in: Unified diff