public void CleanupTombstones(TimeSpan timespan) { InitializeMetadataStore(); _metadataStore.BeginTransaction(); _metadata.CleanupDeletedItems(timespan); _metadataStore.CommitTransaction(); CloseMetadataStore(); }
protected override void CommitTransaction() { if (_metaDataStore == null) { throw new ArgumentNullException("metadata store not initialized"); } SqlMetadataStore metaDataStore = _metaDataStore as SqlMetadataStore; metaDataStore.CommitTransaction(); }
public void BeginSession() { InitializeMetadataStore(); // _store = MySimpleDataStore.ReadStoreFromFile(_folderPath, _name); //Make sure the metadata store is updated to reflect the state of the data before each sync operation. _metadataStore.BeginTransaction(); UpdateMetadataStoreWithLocalChanges(); _metadataStore.CommitTransaction(); // CleanupTombstones(new TimeSpan(0)); }